r1790 - branches/bxe_2_0/mozile
[email protected] Mon, 19 Nov 2007 17:03:33 +0100 (CET)
| Newsgroups | gmane.editors.bitflux.cvs |
|---|---|
| Message-ID | <[email protected]> |
Author: chregu
Date: Mon Nov 19 17:03:33 2007
New Revision: 1790
Log:
fix BXEB-58
error while onemptycheck
MFH
Modified:
branches/bxe_2_0/mozile/mozCE.js
Modified: branches/bxe_2_0/mozile/mozCE.js
==============================================================================
--- branches/bxe_2_0/mozile/mozCE.js (original)
+++ branches/bxe_2_0/mozile/mozCE.js Mon Nov 19 17:03:33 2007
@@ -432,7 +432,7 @@
//this.selectEditableRange(cssr);
var _posAnchor = null;
- if ( this.focusNode.nodeValue.substr(this.focusOffset,1) == " ") {
+ if ( this.focusNode.nodeValue && this.focusNode.nodeValue.substr(this.focusOffset,1) == " ") {
_posPlus = this.anchorOffset;
_posAnchor = this.anchorNode;
} else if (this.focusOffset >= this.focusNode.length && this.focusNode.nodeValue.substr(this.focusNode.length -1 ,1) == " ") {
--
Bx-editor-cvs mailing list
[email protected]
http://lists.bitflux.ch/cgi-bin/listinfo/bx-editor-cvs