classes/table.js
/**
     * Transforms data according to crud options
     *
     * @param data
     * @param preprocessors
     */
Transforms data according to crud options
@param data
@param preprocessors
Transforms data according to crud options @param data @param preprocessors
_preprocess(data, preprocessors) {
        if (!_.isObject(preprocessors) || preprocessors.length === 0) {
            return data;
        }
        _.each(preprocessors, function(preprocessor) {
            _.each(preprocessor.fields, function(field) {
                if (!_.isUndefined(data[field])) {
                    data[field] = preprocessor.fn(data[field]);
                }
            });
        });
        return data;
    }
_preprocess ( data , preprocessors ) { if ( ! _ . isObject ( preprocessors ) || preprocessors . length === 0 ) { return data ; } _ . each ( preprocessors , function ( preprocessor ) { _ . each ( preprocessor . fields , function ( field ) { if ( ! _ . isUndefined ( data [ field ] ) ) { data [ field ] = preprocessor . fn ( data [ field ] ) ; } } ) ; } ) ; return data ; }
Transforms data according to crud options
 @param data
 @param preprocessors
Transforms data according to crud options @param data @param preprocessors