From 223d9470a94f5dedc62dd473df306de32b48a1af Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Thu, 5 Jul 2012 19:50:01 +0200 Subject: [PATCH] add useCapture argument to addEventListener, not optional in FF 3.6 --- source/Ox/js/DOM.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/Ox/js/DOM.js b/source/Ox/js/DOM.js index 12c6e47a..e3b6088f 100644 --- a/source/Ox/js/DOM.js +++ b/source/Ox/js/DOM.js @@ -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; }