projects
/
horde.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a817509
)
The document DOM element does not have attributes
author
Michael M Slusarz
<slusarz@curecanti.org>
Fri, 6 Mar 2009 07:23:41 +0000
(
00:23
-0700)
committer
Michael M Slusarz
<slusarz@curecanti.org>
Fri, 6 Mar 2009 07:51:56 +0000
(
00:51
-0700)
imp/js/src/ContextSensitive.js
patch
|
blob
|
history
diff --git
a/imp/js/src/ContextSensitive.js
b/imp/js/src/ContextSensitive.js
index
a38ce4b
..
c990453
100644
(file)
--- a/
imp/js/src/ContextSensitive.js
+++ b/
imp/js/src/ContextSensitive.js
@@
-278,8
+278,13
@@
var ContextSensitive = Class.create({
elt = e.element(),
elt_up = elt.up(),
id = elt.readAttribute('id'),
- id_div = elt_up.readAttribute('id'),
- offsets, sub, voffsets, x, y;
+ id_div, offsets, sub, voffsets, x, y;
+
+ if (elt_up == document) {
+ return;
+ }
+
+ id_div = elt_up.readAttribute('id');
if (elt.hasClassName('contextSubmenu')) {
sub = this.submenus.get(id);