Skip to content

Commit

Permalink
fix(simple-scrollbar): correct defineProperty
Browse files Browse the repository at this point in the history
v0.3.1 release
  • Loading branch information
buzinas committed Feb 25, 2018
1 parent 8ec6819 commit 794a0b3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "simple-scrollbar",
"version": "0.3.0",
"version": "0.3.1",
"description": "Very simple vanilla javascript library for creating a custom scrollbar cross-browser and cross-devices.",
"main": "simple-scrollbar.js",
"repository": {
Expand Down
2 changes: 1 addition & 1 deletion simple-scrollbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

function initEl(el) {
if (Object.prototype.hasOwnProperty.call(el, 'data-simple-scrollbar')) return;
Object.defineProperty(el, 'data-simple-scrollbar', new SimpleScrollbar(el));
Object.defineProperty(el, 'data-simple-scrollbar', { value: new SimpleScrollbar(el) });
}

// Mouse drag handler
Expand Down
2 changes: 1 addition & 1 deletion simple-scrollbar.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 794a0b3

Please sign in to comment.