Skip to content

Commit 65b6792

Browse files
committed
jqLiteExtras should run first
1 parent 545c5a8 commit 65b6792

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/ui-scroll.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ import Viewport from './modules/viewport.js';
55
import Adapter from './modules/adapter.js';
66

77
angular.module('ui.scroll', [])
8+
.service('jqLiteExtras', () => new JQLiteExtras())
9+
.run(['jqLiteExtras', (jqLiteExtras) =>
10+
!window.jQuery ? jqLiteExtras.registerFor(angular.element) : null
11+
])
812
.directive('uiScrollViewport', function () {
913
return {
1014
restrict: 'A',
@@ -441,8 +445,4 @@ angular.module('ui.scroll', [])
441445
}
442446

443447
}
444-
])
445-
.service('jqLiteExtras', () => new JQLiteExtras())
446-
.run(['jqLiteExtras', (jqLiteExtras) =>
447-
!window.jQuery ? jqLiteExtras.registerFor(angular.element) : null
448448
]);

0 commit comments

Comments
 (0)