Merge pull request #28 from diegocr/master
Better Blob assignment from view parameter.
This commit is contained in:
@@ -14,8 +14,7 @@
|
|||||||
|
|
||||||
/*! @source http://purl.eligrey.com/github/Blob.js/blob/master/Blob.js */
|
/*! @source http://purl.eligrey.com/github/Blob.js/blob/master/Blob.js */
|
||||||
|
|
||||||
if (!(typeof Blob === "function" || typeof Blob === "object") || typeof URL === "undefined")
|
if (!(typeof Blob === "function" || typeof Blob === "object") || typeof URL === "undefined") (function (view) {
|
||||||
self.Blob = (function (view) {
|
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
view.URL = view.URL || view.webkitURL;
|
view.URL = view.URL || view.webkitURL;
|
||||||
@@ -153,7 +152,7 @@ self.Blob = (function (view) {
|
|||||||
return FakeBlobBuilder;
|
return FakeBlobBuilder;
|
||||||
}(view));
|
}(view));
|
||||||
|
|
||||||
return function Blob(blobParts, options) {
|
view.Blob = function Blob(blobParts, options) {
|
||||||
var type = options ? (options.type || "") : "";
|
var type = options ? (options.type || "") : "";
|
||||||
var builder = new BlobBuilder();
|
var builder = new BlobBuilder();
|
||||||
if (blobParts) {
|
if (blobParts) {
|
||||||
|
|||||||
Reference in New Issue
Block a user