mirror of
https://bitbucket.org/wisemapping/wisemapping-open-source.git
synced 2024-12-23 03:43:48 +01:00
- Fix Cannot call method 'getTextShape' of null'
This commit is contained in:
parent
14e9bf0e06
commit
3d1dc9bfc6
@ -20,6 +20,7 @@ mindplot.MultilineTextEditor = new Class({
|
||||
Extends:Events,
|
||||
initialize:function () {
|
||||
this._topic = null;
|
||||
this._timeoutId = -1;
|
||||
},
|
||||
|
||||
_buildEditor:function () {
|
||||
@ -203,7 +204,7 @@ mindplot.MultilineTextEditor = new Class({
|
||||
|
||||
}.bind(this);
|
||||
|
||||
displayFunc.delay(10);
|
||||
this._timeoutId = displayFunc.delay(10);
|
||||
},
|
||||
|
||||
_setStyle:function (fontStyle) {
|
||||
@ -273,6 +274,8 @@ mindplot.MultilineTextEditor = new Class({
|
||||
close:function (update) {
|
||||
if (this.isVisible()) {
|
||||
// Update changes ...
|
||||
clearTimeout(this._timeoutId);
|
||||
|
||||
if (!$defined(update) || update) {
|
||||
this._updateModel();
|
||||
}
|
||||
@ -284,6 +287,7 @@ mindplot.MultilineTextEditor = new Class({
|
||||
this._containerElem.dispose();
|
||||
this._containerElem = null;
|
||||
this._topic = null;
|
||||
this._timeoutId = -1;
|
||||
}
|
||||
}
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user