r1548 - branches/bxe_2_0/js
[email protected] Wed, 18 Oct 2006 15:07:35 +0200 (CEST)
| Newsgroups | gmane.editors.bitflux.cvs |
|---|---|
| Message-ID | <[email protected]> |
Author: chregu
Date: Wed Oct 18 15:07:34 2006
New Revision: 1548
Modified:
branches/bxe_2_0/js/table.js
Log:
check if node exists
Modified: branches/bxe_2_0/js/table.js
==============================================================================
--- branches/bxe_2_0/js/table.js (original)
+++ branches/bxe_2_0/js/table.js Wed Oct 18 15:07:34 2006
@@ -306,7 +306,7 @@
var cellLeft = null;
var pos;
for (var i=0; i< tr.childNodes.length; i++) {
- if (tr.childNodes[i].XMLNode.vdom.bxeTabletype == "table-cell" || tr.childNodes[i].XMLNode.vdom.bxeTabletype == "table-col") {
+ if (tr.childNodes[i].XMLNode && tr.childNodes[i].XMLNode.vdom && (tr.childNodes[i].XMLNode.vdom.bxeTabletype == "table-cell" || tr.childNodes[i].XMLNode.vdom.bxeTabletype == "table-col")) {
if (tr.childNodes[i] == td) {
pos = i;
break;
--
Bx-editor-cvs mailing list
[email protected]
http://lists.bitflux.ch/cgi-bin/listinfo/bx-editor-cvs