diff options
author | Sem <sembrestels@riseup.net> | 2012-08-02 21:44:44 +0200 |
---|---|---|
committer | Sem <sembrestels@riseup.net> | 2012-08-02 21:44:44 +0200 |
commit | dad0209bbd7994b623bc0126e3e37b1f521d2977 (patch) | |
tree | 1e954b32439cbfc2acbbd63ed62dc372a260f37e /vendors/jquery-file-upload/js/vendor/canvas-to-blob.min.js | |
parent | fa81c487488064f684649272a6579079d3a88e2c (diff) | |
parent | 28b1669c4b1afaed7429da2cc9580340dcb13b6e (diff) | |
download | elgg-dad0209bbd7994b623bc0126e3e37b1f521d2977.tar.gz elgg-dad0209bbd7994b623bc0126e3e37b1f521d2977.tar.bz2 |
Merge branch 'jquery-uploader' of git://github.com/sembrestels/Tidypics
Conflicts:
start.php
views/default/photos/css.php
Diffstat (limited to 'vendors/jquery-file-upload/js/vendor/canvas-to-blob.min.js')
-rw-r--r-- | vendors/jquery-file-upload/js/vendor/canvas-to-blob.min.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/vendors/jquery-file-upload/js/vendor/canvas-to-blob.min.js b/vendors/jquery-file-upload/js/vendor/canvas-to-blob.min.js new file mode 100644 index 000000000..9328aae30 --- /dev/null +++ b/vendors/jquery-file-upload/js/vendor/canvas-to-blob.min.js @@ -0,0 +1 @@ +(function(a){"use strict";var b=a.HTMLCanvasElement&&a.HTMLCanvasElement.prototype,c=a.BlobBuilder||a.WebKitBlobBuilder||a.MozBlobBuilder||a.MSBlobBuilder,d=c&&a.atob&&a.ArrayBuffer&&a.Uint8Array&&function(a){var b,d,e,f,g,h;a.split(",")[0].indexOf("base64")>=0?b=atob(a.split(",")[1]):b=decodeURIComponent(a.split(",")[1]),d=new ArrayBuffer(b.length),e=new Uint8Array(d);for(f=0;f<b.length;f+=1)e[f]=b.charCodeAt(f);return g=new c,g.append(d),h=a.split(",")[0].split(":")[1].split(";")[0],g.getBlob(h)};a.HTMLCanvasElement&&!b.toBlob&&(b.mozGetAsFile?b.toBlob=function(a,b){a(this.mozGetAsFile("blob",b))}:b.toDataURL&&d&&(b.toBlob=function(a,b){a(d(this.toDataURL(b)))})),typeof define!="undefined"&&define.amd?define(function(){return d}):a.dataURLtoBlob=d})(this);
\ No newline at end of file |