lib/models/BaseTypeHandler.js
function BaseTypeHandler(ksTypeName, handlers) {
    this.ksTypeName = ksTypeName;

    if ("function" === typeof handlers) {
        this.handlers = {default: handlers};
    }
    else {
        this.handlers = _.extend({}, handlers);
    }

}
function BaseTypeHandler(ksTypeName, handlers) {
    this.ksTypeName = ksTypeName;

    if ("function" === typeof handlers) {
        this.handlers = {default: handlers};
    }
    else {
        this.handlers = _.extend({}, handlers);
    }

}
function BaseTypeHandler ( ksTypeName , handlers ) { this . ksTypeName = ksTypeName ; if ( "function" === typeof handlers ) { this . handlers = { default : handlers } ; } else { this . handlers = _ . extend ( { } , handlers ) ; } }
Handles transformation of keystone field types.

@param ksTypeName The name of the field
@param handlers an object with profile/handler pairs or a single function that will be the default profile handler.
@constructor
Handles transformation of keystone field types .