lib/model.js
function ProxiedModel(attributes) {
    var model;
    if (attributes instanceof Model) {
        // Use existing model
        model = attributes;
    }
    else {
        // Create a new Model
        model = new Model(attributes);
    }

    // Return the Proxy handler
    return createModelProxy(model);
}
function ProxiedModel(attributes) {
    var model;
    if (attributes instanceof Model) {
        // Use existing model
        model = attributes;
    }
    else {
        // Create a new Model
        model = new Model(attributes);
    }

    // Return the Proxy handler
    return createModelProxy(model);
}
function ProxiedModel ( attributes ) { var model ; if ( attributes instanceof Model ) { // Use existing model model = attributes ; } else { // Create a new Model model = new Model ( attributes ) ; } // Return the Proxy handler return createModelProxy ( model ) ; }
ProxiedModel constructor. This will return a ProxyHandle to act as a Proxy for
the created model.
ProxiedModel constructor . This will return a ProxyHandle to act as a Proxy for the created model .