[SSE] Refactoring (remove resize callback)

This commit is contained in:
Julia Radzhabova 2022-05-30 18:06:01 +03:00
parent f2eddc5126
commit e086acd52f

View file

@ -2601,13 +2601,8 @@ define([
},
setOleData: function(obj) {
var callback = function(value) {
Common.Gateway.internalMessage('resize', {
width: value.width, height: value.height
});
};
if ((typeof obj === 'object' || obj==="empty") && this.api) {
this.api.asc_addTableOleObjectInOleEditor(typeof obj === 'object' ? obj : undefined, callback);
this.api.asc_addTableOleObjectInOleEditor(typeof obj === 'object' ? obj : undefined);
this.isFrameClosed = false;
}
},