add useCapture argument to addEventListener, not optional in FF 3.6

This commit is contained in:
j 2012-07-05 19:50:01 +02:00
parent a155ff5487
commit 223d9470a9

View file

@ -167,7 +167,7 @@ Ox.$ = Ox.element = function(value) {
on: function() {
var that = this;
Ox.forEach(Ox.makeObject(arguments), function(callback, event) {
that[0].addEventListener(event, callback);
that[0].addEventListener(event, callback, false);
});
return this;
},
@ -201,7 +201,7 @@ Ox.$ = Ox.element = function(value) {
var that = this;
Ox.forEach(Ox.makeObject(arguments), function(callback, event) {
if (callback) {
that[0].removeEventListener(event, callback);
that[0].removeEventListener(event, callback, false);
} else {
that[0]['on' + event] = null;
}