comparison lib/js/urweb.js @ 1829:aadfc1a138d8

Removed unused parent() function which conflicts with window.parent.
author Vladimir Shabanov <vshabanoff@gmail.com>
date Mon, 22 Oct 2012 01:49:22 +0400
parents 4c61bb7acb9b
children a8b273f1f7e3
comparison
equal deleted inserted replaced
1828:05e3365292cd 1829:aadfc1a138d8
698 return pos; 698 return pos;
699 } 699 }
700 700
701 var thisScript = null; 701 var thisScript = null;
702 702
703 function parent() {
704 return thisScript ? thisScript.parentNode : lastParent();
705 }
706
707 function addNode(node) { 703 function addNode(node) {
708 if (thisScript) { 704 if (thisScript) {
709 if (thisScript.parentNode) 705 if (thisScript.parentNode)
710 thisScript.parentNode.replaceChild(node, thisScript); 706 thisScript.parentNode.replaceChild(node, thisScript);
711 } else 707 } else