libs/model.js
function applyModelMethods (model, definition) {
	for (var i in definition.methods) {
		if (i === 'definition') {
			throw new Error('Invalid model definition provided. "definition" is a reserved word');
		}

		model.prototype[i] = definition.methods[i];
	}
}
function applyModelMethods (model, definition) {
	for (var i in definition.methods) {
		if (i === 'definition') {
			throw new Error('Invalid model definition provided. "definition" is a reserved word');
		}

		model.prototype[i] = definition.methods[i];
	}
}
function applyModelMethods ( model , definition ) { for ( var i in definition . methods ) { if ( i === 'definition' ) { throw new Error ( 'Invalid model definition provided. "definition" is a reserved word' ) ; } model . prototype [ i ] = definition . methods [ i ] ; } }
Used in setModel

@param  {[type]} model      [description]
@param  {[type]} definition [description]
@return {[type]}            [description]
Used in setModel