aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorIgor Minar2013-08-09 09:54:17 -0700
committerIgor Minar2013-08-09 09:54:17 -0700
commit0c399bc546b9d62b96cfe30678c464aa69426a5d (patch)
treeb53914ac3050a3e7b96caa07dbf193512b572921 /src
parenta207665dad69248139b150cd3fe8ba13059bffb4 (diff)
downloadangular.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')
-rw-r--r--src/ng/compile.js5
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;
}
});