From ed12ea7e7603f0c6724b4ae0326419e78b739f34 Mon Sep 17 00:00:00 2001 From: Agriya Dev5 Date: Mon, 24 May 2021 15:39:57 +0530 Subject: [PATCH] #104 jquery extend convert to javascript --- src/svgcanvas/utilities.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/svgcanvas/utilities.js b/src/svgcanvas/utilities.js index 1e904615..41448556 100644 --- a/src/svgcanvas/utilities.js +++ b/src/svgcanvas/utilities.js @@ -17,7 +17,7 @@ import { isWebkit, supportsHVLineContainerBBox, supportsPathBBox, supportsXpath, supportsSelectors } from '../common/browser.js'; -import { getClosest } from '../editor/components/jgraduate/Util.js'; +import { getClosest, mergeDeep } from '../editor/components/jgraduate/Util.js'; // String used to encode base64. const KEYSTR = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/='; @@ -899,7 +899,7 @@ export const convertToPath = function ( const batchCmd = new hstry.BatchCommand('Convert element to Path'); // Any attribute on the element not covered by the passed-in attributes - attrs = $.extend({}, attrs, getExtraAttributesForConvertToPath(elem)); + attrs = mergeDeep(attrs, getExtraAttributesForConvertToPath(elem)); const path = addSVGElementFromJson({ element: 'path',