function GonrinComputedModel(model, name, params, delayInit) {
		params = params || {};

		// Rewrite getter param:
		if (params.get && isFunction(params.get)) {
			params._get = params.get;
		}

		// Rewrite setter param:
		if (params.set && isFunction(params.set)) {
			params._set = params.set;
		}

		// Prohibit override of 'get()' and 'set()', then extend:
		delete params.get;
		delete params.set;
		_.extend(this, params);

		// Set model, name, and default dependencies array:
		this.model = model;
		this.name = name;
		this.deps = this.deps || [];

		// Skip init while parent model is initializing:
		// Model will initialize in two passes...
		// the first pass sets up all computed attributes,
		// then the second pass initializes all bindings.
		if (!delayInit) this.init();
	}
// Computeds define custom getter/setter functions to manage their value.
Computeds define custom getter/setter functions to manage their value.
Computeds define custom getter / setter functions to manage their value .
function GonrinComputedModel(model, name, params, delayInit) {
		params = params || {};
		if (params.get && isFunction(params.get)) {
			params._get = params.get;
		}
		if (params.set && isFunction(params.set)) {
			params._set = params.set;
		}
		delete params.get;
		delete params.set;
		_.extend(this, params);
		this.model = model;
		this.name = name;
		this.deps = this.deps || [];
		if (!delayInit) this.init();
	}
function GonrinComputedModel ( model , name , params , delayInit ) { params = params || { } ; if ( params . get && isFunction ( params . get ) ) { params . _get = params . get ; } if ( params . set && isFunction ( params . set ) ) { params . _set = params . set ; } delete params . get ; delete params . set ; _ . extend ( this , params ) ; this . model = model ; this . name = name ; this . deps = this . deps || [ ] ; if ( ! delayInit ) this . init ( ) ; }
Computeds define custom getter/setter functions to manage their value.
Computeds define custom getter / setter functions to manage their value .
// Rewrite getter param: // Rewrite setter param: // Prohibit override of 'get()' and 'set()', then extend: // Set model, name, and default dependencies array: // Skip init while parent model is initializing: // Model will initialize in two passes... // the first pass sets up all computed attributes, // then the second pass initializes all bindings.