diff --git a/src/svgcanvas/elem-get-set.js b/src/svgcanvas/elem-get-set.js index f25ed2ce..f47ad098 100644 --- a/src/svgcanvas/elem-get-set.js +++ b/src/svgcanvas/elem-get-set.js @@ -3,12 +3,8 @@ * @license MIT * @copyright 2011 Jeff Schiller */ - -/* globals jQuery */ import { jGraduate } from '../editor/components/jgraduate/jQuery.jGraduate.js'; - import * as hstry from './history.js'; -import jQueryPluginSVG from './jQuery.attr.js'; import { NS } from '../common/namespaces.js'; import { getVisibleElements, getStrokedBBoxDefaultVisible, findDefs, @@ -19,8 +15,6 @@ import { } from '../common/units.js'; import { getParents } from '../editor/components/jgraduate/Util.js'; -const $ = jQueryPluginSVG(jQuery); - const { InsertElementCommand, RemoveElementCommand, ChangeElementCommand, BatchCommand @@ -272,7 +266,7 @@ export const setBBoxZoomMethod = function (val, editorW, editorH) { switch (val) { case 'selection': { if (!selectedElements[0]) { return undefined; } - const selectedElems = $.map(selectedElements, function (n) { + const selectedElems = selectedElements.map(function (n, _) { if (n) { return n; }