refactor index.js to make it even simpler.

This commit is contained in:
JFH
2021-05-23 19:01:23 +02:00
parent e126ae40d4
commit 8ffe894047
2 changed files with 7 additions and 7 deletions

View File

@@ -14,6 +14,13 @@
* @module SVGEditor
*/
import jQuery from 'jquery/dist/jquery.slim.js';
import jQueryPluginSVG from '../svgcanvas/jQuery.attr.js'; // Needed for SVG attribute
import './components/index.js';
import './dialogs/index.js';
// Global Constant
window.$ = jQueryPluginSVG(jQuery);
import './touch.js';
import { isMac } from '../common/browser.js';

View File

@@ -4,15 +4,8 @@ For default config and extensions (and available options) available to
`setConfig()`, see the file `docs/tutorials/ConfigOptions.md`
*/
import jQuery from 'jquery/dist/jquery.slim.js';
import jQueryPluginSVG from '../svgcanvas/jQuery.attr.js'; // Needed for SVG attribute
import './components/index.js';
import './dialogs/index.js';
import Editor from './Editor.js';
// Global Constant
window.$ = jQueryPluginSVG(jQuery);
const svgEditor = new Editor();
svgEditor.init();