Skip to content

Commit abbba76

Browse files
author
Christopher Hiller
committed
angular-ui#91: using angular.element() and 'on' function instead of bind
1 parent 4cf86a2 commit abbba76

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/directives/scrollfix/scrollfix.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ angular.module('ui.directives').directive('uiScrollfix', ['$window', function ($
1919
attrs.uiScrollfix = top + attrs.uiScrollfix.substr(1);
2020
}
2121
}
22-
$($window).bind('scroll.ui-scrollfix', function () {
22+
angular.element($window).on('scroll.ui-scrollfix', function () {
2323
// if pageYOffset is defined use it, otherwise use other crap for IE
2424
var offset;
2525
if (angular.isDefined($window.pageYOffset)) {

0 commit comments

Comments
 (0)