mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-03-28 12:10:22 +00:00
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
This commit is contained in:
parent
a207665dad
commit
0c399bc546
1 changed files with 0 additions and 5 deletions
|
|
@ -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;
|
||||
}
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue