docs: function registerView(view) {
    var name = view.getDebugName();
    var wrapped = new RegistryWrapper(view, 'views');
    flatRegistry.views[name] = wrapped;
    if (!view.parentView && !view.isComponentView) {
      nestedRegistry.views[name] = wrapped;
    }
    if (typeof view.destroy === 'function') {
      wrapped.destroy = _.bind(view.destroy, view);
      view.destroy = _.bind(function() {
        var name = this.obj.getDebugName();
        delete nestedRegistry.views[name];
        delete flatRegistry.views[name];
        updateNestedModels();
        triggerChange();
        this.destroy();
      }, wrapped);
    }
    updateNestedModels();
    triggerChange();
  }