incubator-xap-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mtu...@apache.org
Subject svn commit: r500266 - /incubator/xap/trunk/codebase/src/xap/taghandling/AbstractTagImpl.js
Date Fri, 26 Jan 2007 15:12:59 GMT
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;



Mime
View raw message