r1794 - branches/bxe_2_0/mozile

[email protected] Mon, 19 Nov 2007 17:19:46 +0100 (CET)
Newsgroups gmane.editors.bitflux.cvs
Message-ID <[email protected]>
Author: chregu
Date: Mon Nov 19 17:19:46 2007
New Revision: 1794

Log:
better onempty check


Modified:
   branches/bxe_2_0/mozile/mozilekb.js

Modified: branches/bxe_2_0/mozile/mozilekb.js
==============================================================================
--- branches/bxe_2_0/mozile/mozilekb.js	(original)
+++ branches/bxe_2_0/mozile/mozilekb.js	Mon Nov 19 17:19:46 2007
@@ -628,9 +628,11 @@
 						if (_par.childNodes.length == 1) {
 							_par.removeChild(_par.firstChild);
 							bxe_checkEmpty(_par.XMLNode,makeDefault);
+						} else if (_par.childNodes.length == 0) {
+							bxe_checkEmpty(_par.XMLNode,makeDefault);
 						} else {
 							_par.replaceChild(_par.ownerDocument.createTextNode(" "),xmlnode);
-							bxe_checkEmpty(_par.XMLNode,makeDefault);
+							bxe_checkEmptyParent(_par.XMLNode);
 						}
 					}
 					
-- 
Bx-editor-cvs mailing list
[email protected]
http://lists.bitflux.ch/cgi-bin/listinfo/bx-editor-cvs