Skip to content

Commit

Permalink
ensure initial scrollfix state is set (fixes angular-ui#88)
Browse files Browse the repository at this point in the history
  • Loading branch information
Josh Friend committed Apr 24, 2015
1 parent e913d17 commit c5adeab
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions modules/scrollfix/scrollfix.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ angular.module('ui.scrollfix',[]).directive('uiScrollfix', ['$window', function
}

$target.on('scroll', onScroll);
onScroll();

// Unbind scroll event handler when directive is removed
scope.$on('$destroy', function() {
Expand Down

0 comments on commit c5adeab

Please sign in to comment.