#013 jquery attr removed

master
Agriya Dev5 2021-05-22 19:35:51 +05:30
parent 6e208f8285
commit de93e47f02
1 changed files with 1 additions and 7 deletions

View File

@ -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;
}