Skip to content

Commit e430b3c

Browse files
committed
exchanged arguments.callee with recursive call for strict compliance
1 parent 20d5807 commit e430b3c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

particles.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
/* How to use? : Check the GitHub README
77
/* v2.0.0
88
/* ----------------------------------------------- */
9+
'use strict'
910

1011
var pJS = function(tag_id, params){
1112

@@ -1418,7 +1419,7 @@ Object.deepExtend = function(destination, source) {
14181419
if (source[property] && source[property].constructor &&
14191420
source[property].constructor === Object) {
14201421
destination[property] = destination[property] || {};
1421-
arguments.callee(destination[property], source[property]);
1422+
this.deepExtend(destination[property], source[property]);
14221423
} else {
14231424
destination[property] = source[property];
14241425
}
@@ -1538,4 +1539,4 @@ window.particlesJS.load = function(tag_id, path_config_json, callback){
15381539
};
15391540
xhr.send();
15401541

1541-
};
1542+
};

0 commit comments

Comments
 (0)