example/dist/production.js
function(name) {
            var parseName = "parse" + can.capitalize(name);
            return function(data) {
                // If there's a `parse...` function, use its output.
                if (this[parseName]) {
                    data = this[parseName].apply(this, arguments);
                }
                // Run our maybe-parsed data through `model` or `models`.
                return this[name](data);
            };
        }
function(name) {
            var parseName = "parse" + can.capitalize(name);
            return function(data) {
                // If there's a `parse...` function, use its output.
                if (this[parseName]) {
                    data = this[parseName].apply(this, arguments);
                }
                // Run our maybe-parsed data through `model` or `models`.
                return this[name](data);
            };
        }
function ( name ) { var parseName = "parse" + can . capitalize ( name ) ; return function ( data ) { // If there's a `parse...` function, use its output. if ( this [ parseName ] ) { data = this [ parseName ] . apply ( this , arguments ) ; } // Run our maybe-parsed data through `model` or `models`. return this [ name ] ( data ) ; } ; }
Returns a function that knows how to prepare data from `findAll` or `findOne` calls. `name` should be either `model` or `models`.
Returns a function that knows how to prepare data from findAll or findOne calls . name should be either model or models .