aboutsummaryrefslogtreecommitdiffstats
path: root/src/Angular.js
diff options
context:
space:
mode:
authorBruno Baia2013-11-19 00:30:36 +0100
committerPawel Kozlowski2014-03-15 19:41:07 +0100
commitb8cc71d476f76ff51e719fb76fb2348027c858ce (patch)
treec65b60a2dda24519a108459c404da955f3894bc0 /src/Angular.js
parent511422adb08beb6bc33e048a31cb5aaa01408b84 (diff)
downloadangular.js-b8cc71d476f76ff51e719fb76fb2348027c858ce.tar.bz2
fix($http): allow sending Blob data using $http
Closes #5012
Diffstat (limited to 'src/Angular.js')
-rw-r--r--src/Angular.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/Angular.js b/src/Angular.js
index 68ae9295..96df13f4 100644
--- a/src/Angular.js
+++ b/src/Angular.js
@@ -45,6 +45,7 @@
-isWindow,
-isScope,
-isFile,
+ -isBlob,
-isBoolean,
-trim,
-isElement,
@@ -566,6 +567,11 @@ function isFile(obj) {
}
+function isBlob(obj) {
+ return toString.call(obj) === '[object Blob]';
+}
+
+
function isBoolean(value) {
return typeof value === 'boolean';
}