add useCapture argument to addEventListener, not optional in FF 3.6
This commit is contained in:
parent
a155ff5487
commit
223d9470a9
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue