summaryrefslogtreecommitdiff
path: root/lib
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
commit0d909d67d931ab05fe4ca3db9f6dc9d13118556e (patch)
tree7d0612b01f99c03aafd9a6aabeffe0557055e25e /lib
parent5b85528f9f0674a04add1fcf092a9acd4e7d1bdc (diff)
Alter JavaScript lastParent() to play nice with Firebug
Diffstat (limited to 'lib')
-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;