Create shim for new Blob API

This commit is contained in:
Devin Samarin
2013-01-14 11:46:22 -08:00
parent 78394a43cb
commit 0629aa7908
2 changed files with 179 additions and 10 deletions
+3 -10
View File
@@ -1,16 +1,9 @@
BlobBuilder.js
Blob.js
==============
BlobBuilder.js implements the W3C [`BlobBuilder`][1] interface in browsers that do
Blob.js implements the W3C [`Blob`][1] interface in browsers that do
not natively support it.
Limitations
-----------
You can not append native blobs to a BlobBuilder.js `BlobBuilder` unless the script is in
a web worker thread, as the necessary `FileReaderSync` interface for reading native blobs
is limited to web worker threads only.
![Tracking image](//in.getclicky.com/212712ns.gif)
[1]: http://www.w3.org/TR/file-writer-api/#the-blobbuilder-interface
[1]: http://www.w3.org/TR/FileAPI/#blob