diff options
| author | Bruno Baia | 2013-11-19 00:30:36 +0100 |
|---|---|---|
| committer | Pawel Kozlowski | 2014-03-15 19:41:07 +0100 |
| commit | b8cc71d476f76ff51e719fb76fb2348027c858ce (patch) | |
| tree | c65b60a2dda24519a108459c404da955f3894bc0 /src/Angular.js | |
| parent | 511422adb08beb6bc33e048a31cb5aaa01408b84 (diff) | |
| download | angular.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.js | 6 |
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'; } |
