src/instantiate.js
function defaultUpdateFunction(instance, data) {
    if (instance.isMatreshkaArray) {
        instance.recreate(data);
    } else if (instance.isMatreshkaObject) {
        instance.setData(data, { replaceData: true });
    } else {
        // for other objects just extend them with given data
        nofn.assign(instance, data);
    }
}
function defaultUpdateFunction(instance, data) {
    if (instance.isMatreshkaArray) {
        instance.recreate(data);
    } else if (instance.isMatreshkaObject) {
        instance.setData(data, { replaceData: true });
    } else {
        // for other objects just extend them with given data
        nofn.assign(instance, data);
    }
}
function defaultUpdateFunction ( instance , data ) { if ( instance . isMatreshkaArray ) { instance . recreate ( data ) ; } else if ( instance . isMatreshkaObject ) { instance . setData ( data , { replaceData : true } ) ; } else { // for other objects just extend them with given data nofn . assign ( instance , data ) ; } }
the function is used when no update function is given
the function is used when no update function is given