Fixed case issues; closes #4
This commit is contained in:
+11
-11
@@ -39,10 +39,10 @@ var
|
|||||||
+ "NO_MODIFICATION_ALLOWED_ERR INVALID_STATE_ERR SYNTAX_ERR"
|
+ "NO_MODIFICATION_ALLOWED_ERR INVALID_STATE_ERR SYNTAX_ERR"
|
||||||
).split(" ")
|
).split(" ")
|
||||||
, file_ex_code = file_ex_codes.length
|
, file_ex_code = file_ex_codes.length
|
||||||
, realURL = view.URL || view.webkitURL || view
|
, real_URL = view.URL || view.webkitURL || view
|
||||||
, real_create_object_URL = realURL.createObjectURL
|
, real_create_object_URL = real_URL.createObjectURL
|
||||||
, real_revoke_object_URL = realURL.revokeObjectURL
|
, real_revoke_object_URL = real_URL.revokeObjectURL
|
||||||
, URL = realURL
|
, URL = real_URL
|
||||||
, btoa = view.btoa
|
, btoa = view.btoa
|
||||||
, atob = view.atob
|
, atob = view.atob
|
||||||
, can_apply_typed_arrays = false
|
, can_apply_typed_arrays = false
|
||||||
@@ -62,7 +62,7 @@ try {
|
|||||||
can_apply_typed_arrays_test.apply(0, new Uint8Array(1));
|
can_apply_typed_arrays_test.apply(0, new Uint8Array(1));
|
||||||
}
|
}
|
||||||
} catch (ex) {}
|
} catch (ex) {}
|
||||||
if (!realURL.createObjectURL) {
|
if (!real_URL.createObjectURL) {
|
||||||
URL = view.URL = {};
|
URL = view.URL = {};
|
||||||
}
|
}
|
||||||
URL.createObjectURL = function(blob) {
|
URL.createObjectURL = function(blob) {
|
||||||
@@ -84,13 +84,13 @@ URL.createObjectURL = function(blob) {
|
|||||||
} else {
|
} else {
|
||||||
return data_URI_header + "," + encodeURIComponent(blob.data);
|
return data_URI_header + "," + encodeURIComponent(blob.data);
|
||||||
}
|
}
|
||||||
} else if (real_create_object_url) {
|
} else if (real_create_object_URL) {
|
||||||
return real_create_object_url.call(realURL, blob);
|
return real_create_object_URL.call(real_URL, blob);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
URL.revokeObjectURL = function(object_url) {
|
URL.revokeObjectURL = function(object_URL) {
|
||||||
if (object_url.substring(0, 5) !== "data:" && real_revoke_object_url) {
|
if (object_URL.substring(0, 5) !== "data:" && real_revoke_object_URL) {
|
||||||
real_revoke_object_url.call(realURL, object_url);
|
real_revoke_object_URL.call(real_URL, object_URL);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
FBB_proto.append = function(data/*, endings*/) {
|
FBB_proto.append = function(data/*, endings*/) {
|
||||||
@@ -158,4 +158,4 @@ FB_proto.toString = function() {
|
|||||||
return "[object Blob]";
|
return "[object Blob]";
|
||||||
};
|
};
|
||||||
return FakeBlobBuilder;
|
return FakeBlobBuilder;
|
||||||
}(self));
|
}(self));
|
||||||
|
|||||||
Reference in New Issue
Block a user