projects
/
horde.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5b9023a
)
Check to be sure that the event is a prototype extended Event object
author
Michael J. Rubinsky
<mrubinsk@horde.org>
Fri, 18 Dec 2009 04:31:38 +0000
(23:31 -0500)
committer
Michael 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
patch
|
blob
|
history
diff --git
a/kronolith/js/kronolith.js
b/kronolith/js/kronolith.js
index
cf5e08b
..
dbb4947
100644
(file)
--- 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;
}