You are viewing a plain text version of this content. The canonical link for it is here.
Posted to xap-commits@incubator.apache.org by mt...@apache.org on 2007/01/26 15:12:59 UTC
svn commit: r500266 -
/incubator/xap/trunk/codebase/src/xap/taghandling/AbstractTagImpl.js
Author: mturyn
Date: Fri Jan 26 07:12:59 2007
New Revision: 500266
URL: http://svn.apache.org/viewvc?view=rev&rev=500266
Log:
More general way (than aBridge.getUiDocument()) of getting the document instance needed to call createTextNode()---thanks, James.
Modified:
incubator/xap/trunk/codebase/src/xap/taghandling/AbstractTagImpl.js
Modified: incubator/xap/trunk/codebase/src/xap/taghandling/AbstractTagImpl.js
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/codebase/src/xap/taghandling/AbstractTagImpl.js?view=diff&rev=500266&r1=500265&r2=500266
==============================================================================
--- incubator/xap/trunk/codebase/src/xap/taghandling/AbstractTagImpl.js (original)
+++ incubator/xap/trunk/codebase/src/xap/taghandling/AbstractTagImpl.js Fri Jan 26 07:12:59 2007
@@ -533,7 +533,7 @@
element.removeStructureChangeListener(this);
var firstChild = element.firstChild;
if (!firstChild){
- element.appendChild(this.getUiDocument().createTextNode(value));
+ element.appendChild(element.ownerDocument.createTextNode(value));
}
else if (firstChild.nodeType==google.DOM_TEXT_NODE){
firstChild.nodeValue = value;