diff options
| author | Misko Hevery | 2011-11-07 21:54:01 -0800 |
|---|---|---|
| committer | Misko Hevery | 2011-11-14 20:31:14 -0800 |
| commit | 78c7066422a9c800e7d527a4ed588a138a326551 (patch) | |
| tree | 2965246a680bb68fda97496fdd9f6161631e9e73 /src/Injector.js | |
| parent | 923da410bd57481be67d3d5039245929498e94ac (diff) | |
| download | angular.js-78c7066422a9c800e7d527a4ed588a138a326551.tar.bz2 | |
refactor(angular): isDate / isArray test iframe independent fix
Diffstat (limited to 'src/Injector.js')
| -rw-r--r-- | src/Injector.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Injector.js b/src/Injector.js index 838a911d..eacb8699 100644 --- a/src/Injector.js +++ b/src/Injector.js @@ -107,7 +107,7 @@ function createInjector(modulesToLoad, moduleRegistry) { path.shift(); } case 'object': - if (value instanceof Array) { + if (isArray(value)) { return invoke(null, value); } default: @@ -122,11 +122,11 @@ function createInjector(modulesToLoad, moduleRegistry) { length, key; - if (fn instanceof Function) { + if (typeof fn == 'function') { $inject = inferInjectionArgs(fn); length = $inject.length; } else { - if (fn instanceof Array) { + if (isArray(fn)) { $inject = fn; length = $inject.length; fn = $inject[--length]; |
