|
|
|
@ -1,5 +1,3 @@
|
|
|
|
import { is_function} from '../../runtime/internal/utils';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// adapted from klona v2.0.4 - https://github.com/lukeed/klona
|
|
|
|
// adapted from klona v2.0.4 - https://github.com/lukeed/klona
|
|
|
|
// (c) Luke Edwards, under MIT License
|
|
|
|
// (c) Luke Edwards, under MIT License
|
|
|
|
|
|
|
|
|
|
|
|
@ -24,7 +22,7 @@ export function clone(val) {
|
|
|
|
enumerable: true,
|
|
|
|
enumerable: true,
|
|
|
|
writable: true
|
|
|
|
writable: true
|
|
|
|
});
|
|
|
|
});
|
|
|
|
} else if (!is_function(val[k])) { // MODIFICATION: skip functions
|
|
|
|
} else if (typeof val[k] !== 'function') { // MODIFICATION: skip functions
|
|
|
|
out[k] = (tmp = val[k]) && typeof tmp === 'object' ? clone(tmp) : tmp;
|
|
|
|
out[k] = (tmp = val[k]) && typeof tmp === 'object' ? clone(tmp) : tmp;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|