Skip to content

Commit d162402

Browse files
committed
Directives/Components controllers parsing: IE, FF compatibility
1 parent 60f1095 commit d162402

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

dist/ui-scroll.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*!
22
* angular-ui-scroll
33
* https://github.com/angular-ui/ui-scroll.git
4-
* Version: 1.5.1 -- 2016-11-07T22:33:16.326Z
4+
* Version: 1.5.1 -- 2016-11-08T02:42:37.872Z
55
* License: MIT
66
*/
77

@@ -535,7 +535,7 @@ angular.module('ui.scroll', []).directive('uiScrollViewport', function () {
535535
return true;
536536
}
537537
// directive's/component's 'Controller As' parsing
538-
if (!on && candidateScope && candidateScope.hasOwnProperty(controllerName) && candidateScope[controllerName].constructor.name === 'controller') {
538+
if (!on && candidateScope && candidateScope.hasOwnProperty(controllerName) && Object.getPrototypeOf(candidateScope[controllerName]).constructor.hasOwnProperty('$inject')) {
539539
scope = candidateScope;
540540
return true;
541541
}

0 commit comments

Comments
 (0)