From 3bf54e5a95c051a5ac9793dcf7a7e96b36563907 Mon Sep 17 00:00:00 2001 From: Agriya Dev5 Date: Mon, 24 May 2021 11:39:06 +0530 Subject: [PATCH] #104 jquery extend change to javascript --- src/svgcanvas/svgcanvas.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/svgcanvas/svgcanvas.js b/src/svgcanvas/svgcanvas.js index bb573e95..74e1c149 100644 --- a/src/svgcanvas/svgcanvas.js +++ b/src/svgcanvas/svgcanvas.js @@ -169,15 +169,16 @@ class SvgCanvas { // Alias Namespace constants // Default configuration options - const curConfig = { + let curConfig = { show_outside_canvas: true, selectNew: true, dimensions: [ 640, 480 ] }; // Update config with new one if given + this.mergeDeep = mergeDeep; if (config) { - $.extend(curConfig, config); + curConfig = this.mergeDeep(curConfig, config); } // Array with width/height of canvas @@ -188,7 +189,6 @@ class SvgCanvas { this.$id = $id; this.$qq = $qq; this.$qa = $qa; - this.mergeDeep = mergeDeep; this.getClosest = getClosest; this.getParents = getParents; /** A storage solution aimed at replacing jQuerys data function.