Skip to content

Commit de115d3

Browse files
committed
do not try to recurse into gl-vis object in Lib.minExtend
- this led to max call stack errors previously on snapshots
1 parent 1451802 commit de115d3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,7 @@ lib.minExtend = function(obj1, obj2) {
384384
for(i = 0; i < keys.length; i++) {
385385
k = keys[i];
386386
v = obj1[k];
387-
if(k.charAt(0) === '_' || typeof v === 'function') continue;
387+
if(k.charAt(0) === '_' || typeof v === 'function' || k === 'glTrace') continue;
388388
else if(k === 'module') objOut[k] = v;
389389
else if(Array.isArray(v)) objOut[k] = v.slice(0, arrayLen);
390390
else if(v && (typeof v === 'object')) objOut[k] = lib.minExtend(obj1[k], obj2[k]);

0 commit comments

Comments
 (0)