Skip to content

Commit 60c1fa9

Browse files
committed
Merge pull request #6 from gabrielfgularte/master
Great improvement, thanks.
2 parents 4054b25 + 9445bea commit 60c1fa9

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Usage
77
------------
88

99
```html
10-
<div class="scroll-body" slimscroll="slimscorllOption">
10+
<div class="scroll-body" slimscroll="{slimscrollOption: value}">
1111
Scroll Content
1212
</div>
1313
```

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)