From: Michael J. Rubinsky Date: Fri, 18 Dec 2009 04:31:38 +0000 (-0500) Subject: Check to be sure that the event is a prototype extended Event object X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=fb8b2dc5c2df1eeb067a79b6346c20aa100e6b25;p=horde.git Check to be sure that the event is a prototype extended Event object and not a native event object that bubbled up from the map. Gets rid of e.element is not a function errors when any events are triggered over the event map. --- diff --git a/kronolith/js/kronolith.js b/kronolith/js/kronolith.js index cf5e08bec..dbb4947f0 100644 --- a/kronolith/js/kronolith.js +++ b/kronolith/js/kronolith.js @@ -2540,7 +2540,7 @@ KronolithCore = { clickHandler: function(e, dblclick) { - if (e.isRightClick()) { + if (e.isRightClick() || typeof e.element != 'function') { return; }