skip missing objects

This commit is contained in:
Stewart Allen 2020-04-10 12:03:25 -04:00
commit 40eb12c2ff

View file

@ -22,6 +22,7 @@ let gs_kiri_conf = exports;
// add fields to o(bject) from t(arget) that are missing
// remove fields from o(bject) that don't exist in f(ilter)
function fill_cull(o, t, f) {
if (!o) return;
// add missing
for (let k in t) {
if (!t.hasOwnProperty(k)) {