Commit 081fd81d authored by Oleg Korshul's avatar Oleg Korshul

plugins: error if the last line code is a comment

parent a8f38290
......@@ -432,7 +432,7 @@
}
}
var _script = "(function(){ var Api = window.g_asc_plugins.api;\n" + value + "})();";
var _script = "(function(){ var Api = window.g_asc_plugins.api;\n" + value + "\n})();";
eval(_script);
if (pluginData.getAttribute("recalculate") == true)
......
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