comparison lib/js/urweb.js @ 1678:d05299e561c8

Fix bug with 'dynClass' immediately inside <dyn>
author Adam Chlipala <adam@chlipala.net>
date Sat, 14 Jan 2012 11:24:17 -0500
parents 1c8456f0cf8c
children e8a84494d2c0
comparison
equal deleted inserted replaced
1677:3cfc79f92db7 1678:d05299e561c8
641 function parent() { 641 function parent() {
642 return thisScript ? thisScript.parentNode : lastParent(); 642 return thisScript ? thisScript.parentNode : lastParent();
643 } 643 }
644 644
645 function addNode(node) { 645 function addNode(node) {
646 if (thisScript) 646 if (thisScript) {
647 thisScript.parentNode.replaceChild(node, thisScript); 647 if (thisScript.parentNode)
648 else 648 thisScript.parentNode.replaceChild(node, thisScript);
649 } else
649 lastParent().appendChild(node); 650 lastParent().appendChild(node);
650 } 651 }
651 652
652 var thisScript = null; 653 var thisScript = null;
653 654