Skip to content

Commit

Permalink
remove component-bind
Browse files Browse the repository at this point in the history
  • Loading branch information
pirxpilot committed Dec 11, 2017
1 parent c4886a8 commit 52b2443
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
5 changes: 2 additions & 3 deletions antiscroll.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
var bind = require('bind');
var css = require('css');
var events = require('events');
var q = require('query');
Expand Down Expand Up @@ -135,7 +134,7 @@ function Scrollbar (pane) {
if (initialDisplay !== false) {
this.show();
if (this.pane.autoHide) {
this.hiding = setTimeout(bind(this, 'hide'), parseInt(initialDisplay, 10) || 3000);
this.hiding = setTimeout(this.hide.bind(this), parseInt(initialDisplay, 10) || 3000);
}
}
}
Expand Down Expand Up @@ -193,7 +192,7 @@ Scrollbar.prototype.scroll = function () {
this.show();
if (!this.enter && !this.dragging) {
if (this.pane.autoHide) {
this.hiding = setTimeout(bind(this, 'hide'), 1500);
this.hiding = setTimeout(this.hide.bind(this), 1500);
}
}
}
Expand Down
2 changes: 0 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,11 @@
"main": "antiscroll.js",
"dependencies": {
"@pirxpilot/css": "^0.3.2",
"component-bind": "^1.0.0",
"component-events": "^1.0.9",
"component-inherit": "~0",
"component-query": "~0"
},
"browser": {
"bind": "component-bind",
"css": "@pirxpilot/css",
"events": "component-events",
"inherit": "component-inherit",
Expand Down

0 comments on commit 52b2443

Please sign in to comment.