diff options
author | 2009-03-10 12:44:40 -0400 | |
---|---|---|
committer | 2009-03-10 12:44:40 -0400 | |
commit | e2bfa72019653e309b7cdc3cf4ce4e6153712b1b (patch) | |
tree | 82f3cb492c30ab735fe779934eca0e58a1e6b461 /lib/js/urweb.js | |
parent | a8f3cc9e254122906318531ef39b5cae89829ef4 (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); } |