lib/componentmanager.js
function _shallowCopy(component) {
        var clone = {},
            property;

        for (property in component) {
            if (component.hasOwnProperty(property)) {
                clone[property] = component[property];
            }
        }

        return clone;
    }
function _shallowCopy(component) {
        var clone = {},
            property;

        for (property in component) {
            if (component.hasOwnProperty(property)) {
                clone[property] = component[property];
            }
        }

        return clone;
    }
function _shallowCopy ( component ) { var clone = { } , property ; for ( property in component ) { if ( component . hasOwnProperty ( property ) ) { clone [ property ] = component [ property ] ; } } return clone ; }
Create a shallow copy of a component.

@param {Component} component
@return {Component}
Create a shallow copy of a component .