r1736 - branches/bxe_2_0/js

[email protected] Thu, 16 Aug 2007 08:30:00 +0200 (CEST)
Newsgroups gmane.editors.bitflux.cvs
Message-ID <[email protected]>
Author: chregu
Date: Thu Aug 16 08:29:59 2007
New Revision: 1736

Log:
add more checks to prevent an error

Modified:
   branches/bxe_2_0/js/bxeFunctions.js

Modified: branches/bxe_2_0/js/bxeFunctions.js
==============================================================================
--- branches/bxe_2_0/js/bxeFunctions.js	(original)
+++ branches/bxe_2_0/js/bxeFunctions.js	Thu Aug 16 08:29:59 2007
@@ -853,7 +853,7 @@
 			var appNode = widget.MenuPopup.MainNode;
 			bxe_moveDown(appNode);
 		});
-		if (nextSibling.vdom.bxeTabletype == "table-cell" || nextSibling.vdom.bxeTabletype == "table-col" ) {
+		if (nextSibling.vdom && (nextSibling.vdom.bxeTabletype == "table-cell" || nextSibling.vdom.bxeTabletype == "table-col" )) {
 					var menui = popup.addMenuItem(bxe_i18n.getText("Move right"), function(e) {
 				var widget = e.currentTarget.Widget;
 				var _par = widget.MenuPopup.MainNode._node.parentNode;
-- 
Bx-editor-cvs mailing list
[email protected]
http://lists.bitflux.ch/cgi-bin/listinfo/bx-editor-cvs