refactoring
This commit is contained in:
parent
e1385f1c11
commit
fe3bd89aa9
|
@ -723,12 +723,11 @@ define([
|
||||||
if (this._isDocReady)
|
if (this._isDocReady)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
Common.NotificationCenter.trigger('app:ready', this.appOptions);
|
|
||||||
|
|
||||||
var me = this,
|
var me = this,
|
||||||
value;
|
value;
|
||||||
|
|
||||||
me._isDocReady = true;
|
me._isDocReady = true;
|
||||||
|
Common.NotificationCenter.trigger('app:ready', this.appOptions);
|
||||||
|
|
||||||
me.api.SetDrawingFreeze(false);
|
me.api.SetDrawingFreeze(false);
|
||||||
me.hidePreloader();
|
me.hidePreloader();
|
||||||
|
|
|
@ -2091,9 +2091,7 @@ define([
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
(new Promise(function(accept) {
|
Common.Utils.asyncCall(function () {
|
||||||
accept();
|
|
||||||
})).then(function () {
|
|
||||||
if ( config.isEdit ) {
|
if ( config.isEdit ) {
|
||||||
me.toolbar.onAppReady(config);
|
me.toolbar.onAppReady(config);
|
||||||
}
|
}
|
||||||
|
|
|
@ -1041,9 +1041,6 @@ define([
|
||||||
|
|
||||||
onAppReady: function (config) {
|
onAppReady: function (config) {
|
||||||
var me = this;
|
var me = this;
|
||||||
(new Promise( function(resolve, reject) {
|
|
||||||
resolve();
|
|
||||||
})).then(function () {
|
|
||||||
if (!config.isEdit) return;
|
if (!config.isEdit) return;
|
||||||
|
|
||||||
me.btnsInsertImage.forEach(function (btn) {
|
me.btnsInsertImage.forEach(function (btn) {
|
||||||
|
@ -1096,7 +1093,6 @@ define([
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
});
|
|
||||||
},
|
},
|
||||||
|
|
||||||
createDelayedElements: function () {
|
createDelayedElements: function () {
|
||||||
|
|
Loading…
Reference in a new issue