dist/nornj.runtime.common.js
function registerFilter(name, filter, options, mergeConfig) {
  var params = name;

  if (!isObject(name)) {
    params = {};
    params[name] = {
      filter: filter,
      options: options
    };
  }

  each(params, function (v, name) {
    if (v) {
      var _filter = v.filter,
          _options = v.options;

      if (_options) {
        if (_options.isOperator) {
          var createRegexOperators = nj.createRegexOperators;

          if (createRegexOperators) {
            createRegexOperators(name);
          }
        }

        var alias = _options.alias;

        if (alias) {
          var createFilterAlias = nj.createFilterAlias;

          if (createFilterAlias) {
            createFilterAlias(name, alias);
            name = alias;
          }
        }
      }

      if (_filter) {
        filters[name] = _filter;
      } else if (!mergeConfig) {
        filters[name] = v;
      }

      if (mergeConfig) {
        if (!filterConfig[name]) {
          filterConfig[name] = _config$1();
        }

        assign(filterConfig[name], _options);
      } else {
        filterConfig[name] = _config$1(_options);
      }
    }
  }, false);
}
function registerFilter(name, filter, options, mergeConfig) {
  var params = name;

  if (!isObject(name)) {
    params = {};
    params[name] = {
      filter: filter,
      options: options
    };
  }

  each(params, function (v, name) {
    if (v) {
      var _filter = v.filter,
          _options = v.options;

      if (_options) {
        if (_options.isOperator) {
          var createRegexOperators = nj.createRegexOperators;

          if (createRegexOperators) {
            createRegexOperators(name);
          }
        }

        var alias = _options.alias;

        if (alias) {
          var createFilterAlias = nj.createFilterAlias;

          if (createFilterAlias) {
            createFilterAlias(name, alias);
            name = alias;
          }
        }
      }

      if (_filter) {
        filters[name] = _filter;
      } else if (!mergeConfig) {
        filters[name] = v;
      }

      if (mergeConfig) {
        if (!filterConfig[name]) {
          filterConfig[name] = _config$1();
        }

        assign(filterConfig[name], _options);
      } else {
        filterConfig[name] = _config$1(_options);
      }
    }
  }, false);
}
function registerFilter ( name , filter , options , mergeConfig ) { var params = name ; if ( ! isObject ( name ) ) { params = { } ; params [ name ] = { filter : filter , options : options } ; } each ( params , function ( v , name ) { if ( v ) { var _filter = v . filter , _options = v . options ; if ( _options ) { if ( _options . isOperator ) { var createRegexOperators = nj . createRegexOperators ; if ( createRegexOperators ) { createRegexOperators ( name ) ; } } var alias = _options . alias ; if ( alias ) { var createFilterAlias = nj . createFilterAlias ; if ( createFilterAlias ) { createFilterAlias ( name , alias ) ; name = alias ; } } } if ( _filter ) { filters [ name ] = _filter ; } else if ( ! mergeConfig ) { filters [ name ] = v ; } if ( mergeConfig ) { if ( ! filterConfig [ name ] ) { filterConfig [ name ] = _config$1 ( ) ; } assign ( filterConfig [ name ] , _options ) ; } else { filterConfig [ name ] = _config$1 ( _options ) ; } } } , false ) ; }
Register filter and also can batch add
Register filter and also can batch add