r1642 - branches/bxe_2_0/js

[email protected] Sun, 26 Nov 2006 20:35:38 +0100 (CET)
Newsgroups gmane.editors.bitflux.cvs
Message-ID <[email protected]>
Author: chregu
Date: Sun Nov 26 20:35:36 2006
New Revision: 1642

Modified:
   branches/bxe_2_0/js/bxeFunctions.js
Log:
prevent an exception

Modified: branches/bxe_2_0/js/bxeFunctions.js
==============================================================================
--- branches/bxe_2_0/js/bxeFunctions.js	(original)
+++ branches/bxe_2_0/js/bxeFunctions.js	Sun Nov 26 20:35:36 2006
@@ -2364,8 +2364,13 @@
 				var notEditable = false;
 				if (node.hasAttribute("__bxe_attribute")) {
 					var attr = node.getAttribute("__bxe_attribute");
-					node.XMLNode = _existingNode.getAttributeNode(attr).getXMLNode();
-					if (_existingNode.getXMLNode().vdom.attributes[attr].bxeNoteditable) {
+					var _attrNode = _existingNode.getAttributeNode(attr);
+					if (_attrNode) {
+						node.XMLNode = _attrNode.getXMLNode();
+						if (_existingNode.getXMLNode().vdom.attributes[attr].bxeNoteditable) {
+							notEditable = true;
+						}
+					} else {
 						notEditable = true;
 					}
 				} else {
-- 
Bx-editor-cvs mailing list
[email protected]
http://lists.bitflux.ch/cgi-bin/listinfo/bx-editor-cvs