From aa3198cafafa5a0197e7190e29d3c194ece26a99 Mon Sep 17 00:00:00 2001 From: cpojer Date: Mon, 29 Aug 2011 15:41:17 -0700 Subject: [PATCH] Readd internal API for custom event base function. --- Source/Element/Element.Event.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/Element/Element.Event.js b/Source/Element/Element.Event.js index 3fd2bd6a..1bb40e1d 100644 --- a/Source/Element/Element.Event.js +++ b/Source/Element/Element.Event.js @@ -39,7 +39,7 @@ Element.Properties.events = {set: function(events){ return true; }; } - if (custom.base) realType = custom.base; + if (custom.base) realType = Function.from(custom.base).call(this, type); } var defn = function(){ return fn.call(self); @@ -70,7 +70,7 @@ Element.Properties.events = {set: function(events){ var custom = Element.Events[type]; if (custom){ if (custom.onRemove) custom.onRemove.call(this, fn, type); - if (custom.base) type = custom.base; + if (custom.base) type = Function.from(custom.base).call(this, type); } return (Element.NativeEvents[type]) ? this.removeListener(type, value, arguments[2]) : this; }, -- 2.11.4.GIT