Refactoring plugins

This commit is contained in:
Julia Radzhabova 2019-07-12 12:08:45 +03:00
parent c5fc8db803
commit df4308513a

View file

@ -74,7 +74,6 @@ define([
this.api.asc_registerCallback("asc_onPluginClose", _.bind(this.pluginClose, this));
this.api.asc_registerCallback("asc_onPluginResize", _.bind(this.pluginResize, this));
this.api.asc_registerCallback('asc_onPluginsInit', _.bind(this.registerPlugins, this));
this.loadPlugins();
},
onLaunch: function () {
@ -180,6 +179,7 @@ define([
loadConfig: function(data) {
this.configPlugins.config = data.config.plugins;
this.loadPlugins();
},
loadPlugins: function() {