Commit 37efceb7 authored by Alexander.Trofimov's avatar Alexander.Trofimov

in plugins asc_fireCallback -> sendEvent

parent 0e6d842b
...@@ -155,7 +155,7 @@ ...@@ -155,7 +155,7 @@
if (true) if (true)
{ {
this.api.asc_fireCallback("asc_onPluginClose"); this.api.sendEvent("asc_onPluginClose");
var _div = document.getElementById("plugin_iframe"); var _div = document.getElementById("plugin_iframe");
if (_div) if (_div)
_div.parentNode.removeChild(_div); _div.parentNode.removeChild(_div);
...@@ -176,7 +176,7 @@ ...@@ -176,7 +176,7 @@
if (this.current.variations[this.currentVariation].isVisual && this.startData.getAttribute("resize") !== true) if (this.current.variations[this.currentVariation].isVisual && this.startData.getAttribute("resize") !== true)
{ {
this.api.asc_fireCallback("asc_onPluginShow", this.current, this.currentVariation); this.api.sendEvent("asc_onPluginShow", this.current, this.currentVariation);
} }
else else
{ {
...@@ -299,7 +299,7 @@ ...@@ -299,7 +299,7 @@
_pluginsInstall["pluginsData"].push(this.plugins[i].serialize()); _pluginsInstall["pluginsData"].push(this.plugins[i].serialize());
} }
this.api.asc_fireCallback("asc_onPluginsInit", _pluginsInstall); this.api.sendEvent("asc_onPluginsInit", _pluginsInstall);
}, },
startLongAction : function() startLongAction : function()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment