#104 jquery extend change to javascript

master
Agriya Dev5 2021-05-24 11:39:06 +05:30
parent 527d94357d
commit 3bf54e5a95
1 changed files with 3 additions and 3 deletions

View File

@ -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.