From 9af4065f1c2bc653ceabb35bc7260d8ce6336fca Mon Sep 17 00:00:00 2001 From: Adam Chlipala Date: Fri, 25 Dec 2009 09:24:21 -0500 Subject: Alter JavaScript lastParent() to play nice with Firebug --- lib/js/urweb.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/js/urweb.js') 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; -- cgit v1.2.3