Skip to content

Commit 9445bea

Browse files
Fixes #5
$elem have to be a jQuery Object to work with slimScroll.
1 parent 21a49a6 commit 9445bea

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

angular-slimscroll.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ angular.module('ui.slimscroll', []).directive('slimscroll', function () {
1313
} else if ($attr.slimscrollOption) {
1414
option = $scope.$eval($attr.slimscrollOption);
1515
}
16-
$elem.slimScroll({ destroy: true });
17-
$elem.slimScroll(option);
16+
$($elem).slimScroll({ destroy: true });
17+
$($elem).slimScroll(option);
1818
};
1919

2020
var init = function () {

0 commit comments

Comments
 (0)