js/utils/common.js
function createObject(proto, args) {
    var instance = Object.create(proto);
    if (instance.$meta.constructors) {
        instance.$meta.constructors.forEach(function(constructor) {
            constructor.apply(instance, args);
        });
    }
    return instance;
}
function createObject(proto, args) {
    var instance = Object.create(proto);
    if (instance.$meta.constructors) {
        instance.$meta.constructors.forEach(function(constructor) {
            constructor.apply(instance, args);
        });
    }
    return instance;
}
function createObject ( proto , args ) { var instance = Object . create ( proto ) ; if ( instance . $meta . constructors ) { instance . $meta . constructors . forEach ( function ( constructor ) { constructor . apply ( instance , args ) ; } ) ; } return instance ; }
Create an object for the prototype
@param {Object} proto
@param {Object[]} args
@returns {Object}
Create an object for the prototype