From df3a0c1c49bc799cd84184f3e90a718cbeb4c24f Mon Sep 17 00:00:00 2001 From: rolux Date: Mon, 4 Jun 2012 14:07:35 +0200 Subject: [PATCH] fix a bug in unbindEvent --- source/Ox.UI/js/Core/Element.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/Ox.UI/js/Core/Element.js b/source/Ox.UI/js/Core/Element.js index f13c1ffe..8fb7d823 100644 --- a/source/Ox.UI/js/Core/Element.js +++ b/source/Ox.UI/js/Core/Element.js @@ -501,7 +501,7 @@ Ox.Element = function(options, self) { return fn !== callback; }); } else { - Ox.makeObject(arguments).forEach(function(callback, event) { + Ox.forEach(Ox.makeObject(arguments), function(callback, event) { self.$eventHandler.off('ox_' + event, callback); }); }