Implment a native event manager.

Now we're about to be independent from jQuery!
This commit is contained in:
Hyunje Alex Jun
2015-02-11 15:53:42 +00:00
parent 95540bdd9e
commit 70acad4941
6 changed files with 124 additions and 82 deletions
+1 -3
View File
@@ -10,9 +10,7 @@ var d = require('../lib/dom')
module.exports = function (element) {
var i = instances.get(element);
$(element).unbind(i.eventClass());
$(window).unbind(i.eventClass());
$(i.ownerDocument).unbind(i.eventClass());
i.event.unbindAll();
d.remove(i.scrollbarX);
d.remove(i.scrollbarY);
d.remove(i.scrollbarXRail);