Skip to content

Commit

Permalink
Небольшие улучшения
Browse files Browse the repository at this point in the history
  • Loading branch information
f0rmat1k committed May 3, 2015
1 parent a02a9ab commit 996c20b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/wheel-indicator.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ var WheelIndicator = (function() {

on: function(cb){
this.callback = cb || function(){};

return this;
}
};

Expand Down Expand Up @@ -99,8 +101,7 @@ var WheelIndicator = (function() {
function addEvent(elem, type, handler){
if(window.addEventListener) {
elem.addEventListener(type, handler, false);
}
if(window.attachEvent) {
} else if (window.attachEvent) {
elem.attachEvent('on' + type, handler);
}
}
Expand Down

0 comments on commit 996c20b

Please sign in to comment.