diff options
author | 2009-03-10 12:44:40 -0400 | |
---|---|---|
committer | 2009-03-10 12:44:40 -0400 | |
commit | 18c2f489867bf282c49346eb090b22e41ec5f67a (patch) | |
tree | 82f3cb492c30ab735fe779934eca0e58a1e6b461 /lib/js/urweb.js | |
parent | 998ec0f6506d8b7065fbe277c253188b38bcac7c (diff) |
ListEdit demo, minus prose
Diffstat (limited to 'lib/js/urweb.js')
-rw-r--r-- | lib/js/urweb.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/js/urweb.js b/lib/js/urweb.js index c78229af..158e574d 100644 --- a/lib/js/urweb.js +++ b/lib/js/urweb.js @@ -59,10 +59,12 @@ function addNode(node) { function runScripts(node) { var savedScript = thisScript; - var scripts = node.getElementsByTagName("script"); + var scripts = node.getElementsByTagName("script"), scriptsCopy = {}; var len = scripts.length; + for (var i = 0; i < len; ++i) + scriptsCopy[i] = scripts[i]; for (var i = 0; i < len; ++i) { - thisScript = scripts[i]; + thisScript = scriptsCopy[i]; eval(thisScript.textContent); } |