You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
558 B
21 lines
558 B
var root = require('./root'); |
|
var each = require('./each'); |
|
exports = |
|
root.Blob || |
|
function Blob(parts, options) { |
|
options = options || {}; |
|
var blobBuilder = new BlobBuilder(); |
|
each(parts, function(part) { |
|
blobBuilder.append(part); |
|
}); |
|
return options.type |
|
? blobBuilder.getBlob(options.type) |
|
: blobBuilder.getBlob(); |
|
}; |
|
var BlobBuilder = |
|
root.BlobBuilder || |
|
root.WebKitBlobBuilder || |
|
root.MSBlobBuilder || |
|
root.MozBlobBuilder; |
|
|
|
module.exports = exports;
|
|
|