mirror of
https://github.com/ONLYOFFICE/web-apps.git
synced 2026-07-24 04:04:35 +08:00
chore/[pe]: remove unnecessary code
This commit is contained in:
@ -324,9 +324,7 @@ define([
|
||||
},
|
||||
|
||||
createDelayedElements: function(view, type) {
|
||||
var me = this,
|
||||
view = me.documentHolder;
|
||||
this.type = type;
|
||||
var me = this, view = me.documentHolder;
|
||||
|
||||
if (type=='view') {
|
||||
view.menuViewCopy.on('click', _.bind(me.onCutCopyPaste, me));
|
||||
@ -425,7 +423,8 @@ define([
|
||||
},
|
||||
|
||||
createPostLoadElements: function() {
|
||||
if (this.type !== 'edit') {
|
||||
var me = this;
|
||||
if (!me.mode.isEdit) {
|
||||
return;
|
||||
}
|
||||
|
||||
@ -445,7 +444,6 @@ define([
|
||||
this.api.asc_onCloseChartFrame();
|
||||
this.api.asc_enableKeyEvents(true);
|
||||
}
|
||||
var me = this;
|
||||
setTimeout(function(){
|
||||
me.editComplete();
|
||||
}, 10);
|
||||
@ -468,7 +466,6 @@ define([
|
||||
this.api.asc_enableKeyEvents(true);
|
||||
this.api.asc_onCloseChartFrame();
|
||||
}
|
||||
var me = this;
|
||||
setTimeout(function(){
|
||||
me.editComplete();
|
||||
}, 10);
|
||||
|
||||
Reference in New Issue
Block a user