#013 jquery attr removed
parent
6e208f8285
commit
de93e47f02
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue