#013 jquery attr removed
parent
6e208f8285
commit
de93e47f02
|
@ -3,12 +3,8 @@
|
||||||
* @license MIT
|
* @license MIT
|
||||||
* @copyright 2011 Jeff Schiller
|
* @copyright 2011 Jeff Schiller
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* globals jQuery */
|
|
||||||
import { jGraduate } from '../editor/components/jgraduate/jQuery.jGraduate.js';
|
import { jGraduate } from '../editor/components/jgraduate/jQuery.jGraduate.js';
|
||||||
|
|
||||||
import * as hstry from './history.js';
|
import * as hstry from './history.js';
|
||||||
import jQueryPluginSVG from './jQuery.attr.js';
|
|
||||||
import { NS } from '../common/namespaces.js';
|
import { NS } from '../common/namespaces.js';
|
||||||
import {
|
import {
|
||||||
getVisibleElements, getStrokedBBoxDefaultVisible, findDefs,
|
getVisibleElements, getStrokedBBoxDefaultVisible, findDefs,
|
||||||
|
@ -19,8 +15,6 @@ import {
|
||||||
} from '../common/units.js';
|
} from '../common/units.js';
|
||||||
import { getParents } from '../editor/components/jgraduate/Util.js';
|
import { getParents } from '../editor/components/jgraduate/Util.js';
|
||||||
|
|
||||||
const $ = jQueryPluginSVG(jQuery);
|
|
||||||
|
|
||||||
const {
|
const {
|
||||||
InsertElementCommand, RemoveElementCommand,
|
InsertElementCommand, RemoveElementCommand,
|
||||||
ChangeElementCommand, BatchCommand
|
ChangeElementCommand, BatchCommand
|
||||||
|
@ -272,7 +266,7 @@ export const setBBoxZoomMethod = function (val, editorW, editorH) {
|
||||||
switch (val) {
|
switch (val) {
|
||||||
case 'selection': {
|
case 'selection': {
|
||||||
if (!selectedElements[0]) { return undefined; }
|
if (!selectedElements[0]) { return undefined; }
|
||||||
const selectedElems = $.map(selectedElements, function (n) {
|
const selectedElems = selectedElements.map(function (n, _) {
|
||||||
if (n) {
|
if (n) {
|
||||||
return n;
|
return n;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue