addon/utils/data-processor.js
function (children) {
        var allChildren = this.get('allChildren');
        if(allChildren) {
          this._setChildren(allChildren.filter(function (child) {
            return children.indexOf(child) !== -1; // true if child is in children
          }));
        }
      }
function (children) {
        var allChildren = this.get('allChildren');
        if(allChildren) {
          this._setChildren(allChildren.filter(function (child) {
            return children.indexOf(child) !== -1; // true if child is in children
          }));
        }
      }
function ( children ) { var allChildren = this . get ( 'allChildren' ) ; if ( allChildren ) { this . _setChildren ( allChildren . filter ( function ( child ) { return children . indexOf ( child ) !== - 1 ; // true if child is in children } ) ) ; } }
Public function.
Set the child array after filtering
@param children {Array} Array of DataNodes to be set
Public function . Set the child array after filtering