src/viewer.js
function(glob) {
    var newObjects = [];
    var regex = this._globToRegex(glob);
    for (var i = 0; i < this._objects.length; ++i) {
      var obj = this._objects[i];
      if (!regex.test(obj.name())) {
        newObjects.push(obj);
      } else {
        obj.destroy();
      }
    }
    this._objects = newObjects;
  }
function(glob) {
    var newObjects = [];
    var regex = this._globToRegex(glob);
    for (var i = 0; i < this._objects.length; ++i) {
      var obj = this._objects[i];
      if (!regex.test(obj.name())) {
        newObjects.push(obj);
      } else {
        obj.destroy();
      }
    }
    this._objects = newObjects;
  }
function ( glob ) { var newObjects = [ ] ; var regex = this . _globToRegex ( glob ) ; for ( var i = 0 ; i < this . _objects . length ; ++ i ) { var obj = this . _objects [ i ] ; if ( ! regex . test ( obj . name ( ) ) ) { newObjects . push ( obj ) ; } else { obj . destroy ( ) ; } } this . _objects = newObjects ; }
remove all objects whose names match the provided glob pattern from the viewer.
remove all objects whose names match the provided glob pattern from the viewer .