summaryrefslogtreecommitdiff
path: root/lib/js
diff options
context:
space:
mode:
authorGravatar Adam Chlipala <adamc@hcoop.net>2009-12-25 09:24:21 -0500
committerGravatar Adam Chlipala <adamc@hcoop.net>2009-12-25 09:24:21 -0500
commit9af4065f1c2bc653ceabb35bc7260d8ce6336fca (patch)
tree7d0612b01f99c03aafd9a6aabeffe0557055e25e /lib/js
parent3b2cef4a3f15956737dc4af47649c06d69127641 (diff)
Alter JavaScript lastParent() to play nice with Firebug
Diffstat (limited to 'lib/js')
-rw-r--r--lib/js/urweb.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/js/urweb.js b/lib/js/urweb.js
index bd575cc9..474bdaf6 100644
--- a/lib/js/urweb.js
+++ b/lib/js/urweb.js
@@ -298,7 +298,7 @@ function scur(s) {
}
function lastParent() {
- var pos = document;
+ var pos = document.body;
while (pos.lastChild && pos.lastChild.nodeType == 1)
pos = pos.lastChild;