Check to be sure that the event is a prototype extended Event object
authorMichael J. Rubinsky <mrubinsk@horde.org>
Fri, 18 Dec 2009 04:31:38 +0000 (23:31 -0500)
committerMichael J. Rubinsky <mrubinsk@horde.org>
Fri, 18 Dec 2009 04:33:43 +0000 (23:33 -0500)
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

index cf5e08b..dbb4947 100644 (file)
@@ -2540,7 +2540,7 @@ KronolithCore = {
 
     clickHandler: function(e, dblclick)
     {
-        if (e.isRightClick()) {
+        if (e.isRightClick() || typeof e.element != 'function') {
             return;
         }