From fb8b2dc5c2df1eeb067a79b6346c20aa100e6b25 Mon Sep 17 00:00:00 2001 From: "Michael J. Rubinsky" Date: Thu, 17 Dec 2009 23:31:38 -0500 Subject: [PATCH] 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. --- kronolith/js/kronolith.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.11.0