js/data/Model.js
function (identifier) {
            var idField = this.idField;
            if (this.schema.hasOwnProperty(idField)) {
                var schemaObject = this.schema[idField];
                if (schemaObject.type && schemaObject.type === Number) {
                    return parseInt(identifier);
                }
            }
            return identifier;
        }
function (identifier) {
            var idField = this.idField;
            if (this.schema.hasOwnProperty(idField)) {
                var schemaObject = this.schema[idField];
                if (schemaObject.type && schemaObject.type === Number) {
                    return parseInt(identifier);
                }
            }
            return identifier;
        }
function ( identifier ) { var idField = this . idField ; if ( this . schema . hasOwnProperty ( idField ) ) { var schemaObject = this . schema [ idField ] ; if ( schemaObject . type && schemaObject . type === Number ) { return parseInt ( identifier ) ; } } return identifier ; }
Converts the identifier to the given type in the schema
@param {String} identifier
@return {Number|String}
Converts the identifier to the given type in the schema