src/basis/data/dataset/MapFilter.js
function(rule){
    rule = basis.getter(rule || $true);

    if (this.rule !== rule)
    {
      var oldRule = this.rule;

      this.rule = rule;
      this.emit_ruleChanged(oldRule);

      /** @cut */ basis.dev.patchInfo(this, 'sourceInfo', {
      /** @cut */   transform: this.rule
      /** @cut */ });

      return this.applyRule();
    }
  }
function(rule){
    rule = basis.getter(rule || $true);

    if (this.rule !== rule)
    {
      var oldRule = this.rule;

      this.rule = rule;
      this.emit_ruleChanged(oldRule);

      /** @cut */ basis.dev.patchInfo(this, 'sourceInfo', {
      /** @cut */   transform: this.rule
      /** @cut */ });

      return this.applyRule();
    }
  }
function ( rule ) { rule = basis . getter ( rule || $true ) ; if ( this . rule !== rule ) { var oldRule = this . rule ; this . rule = rule ; this . emit_ruleChanged ( oldRule ) ; /** @cut */ basis . dev . patchInfo ( this , 'sourceInfo' , { /** @cut */ transform : this . rule /** @cut */ } ) ; return this . applyRule ( ) ; } }
Set new filter function.
@param {function(item:basis.data.Object):*|string} rule
@return {Object} Delta of member changes.
Set new filter function .