code: function (options) {
        var outletName;
        var parentView;
        if (!options || typeof options === 'string') {
          outletName = options;
        } else {
          outletName = options.outlet;
          parentView = options.parentView;
  
          if (options && Object.keys(options).indexOf('outlet') !== -1 && typeof options.outlet === 'undefined') {
            throw new _emberMetalError.default('You passed undefined as the outlet name.');
          }
        }
        parentView = parentView && parentView.replace(/\//g, '.');
        outletName = outletName || 'main';
        this._disconnectOutlet(outletName, parentView);
        for (var i = 0; i < this.router.router.currentHandlerInfos.length; i++) {
          // This non-local state munging is sadly necessary to maintain
          // backward compatibility with our existing semantics, which allow
          // any route to disconnectOutlet things originally rendered by any
          // other route. This should all get cut in 2.0.
          this.router.router.currentHandlerInfos[i].handler._disconnectOutlet(outletName, parentView);
        }
      }
docs: Disconnects a view that has been rendered into an outlet.
  You may pass any or all of the following options to `disconnectOutlet`:
  `outlet`: the name of the outlet to clear (default: 'main')
  `parentView`: the name of the view containing the outlet to clear
  (default: the view rendered by the parent route)
  Example:
  ```javascript
  App.ApplicationRoute = App.Route.extend({
  actions: {
  showModal: function(evt) {
  this.render(evt.modalName, {
  outlet: 'modal',
  into: 'application'
  });
  },
  hideModal: function(evt) {
  this.disconnectOutlet({
  outlet: 'modal',
  parentView: 'application'
  });
  }
  }
  });
  ```
  Alternatively, you can pass the `outlet` name directly as a string.
  Example:
  ```javascript
  hideModal: function(evt) {
  this.disconnectOutlet('modal');
  }
  ```
  @method disconnectOutlet
  @param {Object|String} options the options hash or outlet name
  @public