Bug #30764 » 0002-BUGFIX-t3editor-try-catch-avoids-exception-side-effe.patch
typo3/sysext/t3editor/jslib/t3editor.js | ||
---|---|---|
// update the line numbers
|
||
updateLinenum: function() {
|
||
// escape if editor is not yet loaded
|
||
if (!this.mirror.editor) return;
|
||
try { if (!this.mirror.editor) return; } catch(e) { return; }
|
||
|
||
var bodyContentLineCount = this.mirror.lineNumber(this.mirror.lastLine());
|
||
disLineCount = this.linenum.childNodes.length;
|