r1339 - branches/bxe_2_0/js

[email protected]
Newsgroups gmane.editors.bitflux.cvs
Message-ID <[email protected]>
Author: chregu
Date: Fri Jun 10 12:19:36 2005
New Revision: 1339

Modified:
   branches/bxe_2_0/js/bxeXMLNode.js
Log:
fix for http://bugzilla.bitflux.ch/show_bug.cgi?id=792
Wrong allowedChildren at first time

Modified: branches/bxe_2_0/js/bxeXMLNode.js
==============================================================================
--- branches/bxe_2_0/js/bxeXMLNode.js	(original)
+++ branches/bxe_2_0/js/bxeXMLNode.js	Fri Jun 10 12:19:36 2005
@@ -75,9 +75,11 @@
 	"nextSibling",
 	function()
 	{
-		var ns = this._node.nextSibling
-		if (ns) {
-			return ns.XMLNode;
+		if (this._node.nextSibling) {
+			if (!this._node.nextSibling.XMLNode) {
+				this._node.nextSibling.XMLNode = this._node.nextSibling.getXMLNode();
+			}
+			return this._node.nextSibling.XMLNode;
 		} else {
 			return null;
 		}
@@ -89,6 +91,9 @@
 	function()
 	{
 		if (this._node.previousSibling) {
+			if (!this._node.previousSibling.XMLNode) {
+				this._node.previousSibling.XMLNode = this._node.previousSibling.getXMLNode();
+			}
 			return this._node.previousSibling.XMLNode;
 		} else {
 			return null;
-- 
Bx-editor-cvs mailing list
[email protected]
http://lists.bitflux.ch/cgi-bin/listinfo/bx-editor-cvs
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.