lib/pym.js
function updateCollected(err, result) {
            if (typeof result !== 'object') {
                collection.err = collection.err || new Error('Invalid acrhitect plugin format');
                return;
            }

            collection.err = collection.err || err;

            if (!collection.loaded) {
                collection.result = result;
                collection.loaded = true;
                return;
            }

            for (var i in result) {
                if (result.hasOwnProperty(i)) {
                    if (collection.result.hasOwnProperty(i)) {
                        collection.err = collection.err || new Error('Service overloading not supported: ' + i);
                        return;
                    }
                    collection.result[i] = result[i];
                }
            }
        }
function updateCollected(err, result) {
            if (typeof result !== 'object') {
                collection.err = collection.err || new Error('Invalid acrhitect plugin format');
                return;
            }

            collection.err = collection.err || err;

            if (!collection.loaded) {
                collection.result = result;
                collection.loaded = true;
                return;
            }

            for (var i in result) {
                if (result.hasOwnProperty(i)) {
                    if (collection.result.hasOwnProperty(i)) {
                        collection.err = collection.err || new Error('Service overloading not supported: ' + i);
                        return;
                    }
                    collection.result[i] = result[i];
                }
            }
        }
function updateCollected ( err , result ) { if ( typeof result !== 'object' ) { collection . err = collection . err || new Error ( 'Invalid acrhitect plugin format' ) ; return ; } collection . err = collection . err || err ; if ( ! collection . loaded ) { collection . result = result ; collection . loaded = true ; return ; } for ( var i in result ) { if ( result . hasOwnProperty ( i ) ) { if ( collection . result . hasOwnProperty ( i ) ) { collection . err = collection . err || new Error ( 'Service overloading not supported: ' + i ) ; return ; } collection . result [ i ] = result [ i ] ; } } }
update `collection` hash
@param {Error} err
@param {Object} result
update collection hash