- Breaking change: In interests of modularity/removing globals, remove window.svgCanvas

and `svgCanvas.ready` as used by older extensions; use `svgEditor.canvas` and
    `svgEditor.ready` instead
- npm: Add `prepare` script to ensure building/testing before publish
This commit is contained in:
Brett Zamir
2018-05-31 09:53:47 +08:00
parent 77999a31ce
commit 96e089f930
9 changed files with 49 additions and 64 deletions

View File

@@ -5125,12 +5125,6 @@ editor.init = function () {
// revnums += svgCanvas.getVersion();
// $('#copyright')[0].setAttribute('title', revnums);
// For Compatibility with older extensions
// $(function () {
window.svgCanvas = svgCanvas;
svgCanvas.ready = editor.ready;
// });
const setLang = editor.setLang = function (lang, allStrings) {
editor.langChanged = true;
$.pref('lang', lang);