diff options
| author | Igor Minar | 2013-08-09 09:54:17 -0700 |
|---|---|---|
| committer | Igor Minar | 2013-08-09 09:54:17 -0700 |
| commit | 0c399bc546b9d62b96cfe30678c464aa69426a5d (patch) | |
| tree | b53914ac3050a3e7b96caa07dbf193512b572921 /src/ng/compile.js | |
| parent | a207665dad69248139b150cd3fe8ba13059bffb4 (diff) | |
| download | angular.js-0c399bc546b9d62b96cfe30678c464aa69426a5d.tar.bz2 | |
chore($compile): remove bogus scope/controller check
We already have the same test in $controller which is called just a few lines above
Closes #3517
Diffstat (limited to 'src/ng/compile.js')
| -rw-r--r-- | src/ng/compile.js | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/src/ng/compile.js b/src/ng/compile.js index 39d3338f..59754ee3 100644 --- a/src/ng/compile.js +++ b/src/ng/compile.js @@ -1035,11 +1035,6 @@ function $CompileProvider($provide) { '$' + directive.name + 'Controller', controllerInstance); if (directive.controllerAs) { - if (typeof locals.$scope !== 'object') { - throw new Error('Can not export controller as "' + directive.controllerAs + '". ' + - 'No scope object provided!'); - } - locals.$scope[directive.controllerAs] = controllerInstance; } }); |
