code: function() {
        if (this.__attachedCallbackInvoked) {
          this.trigger('before-detached-callback');
          this._detached();
          this.__attachedCallbackInvoked = false;
        }
        _.each(this.getTrackedViews(), function(view) {
          // If the tracked view is currently attached to the parent, then invoke detatched on it.
          if (view.isAttachedToParent()) {
            view.__invokeDetached();
          }
        });
      }
docs: Call this method when a view is detached from the DOM. It is recursive to child views.
  @method __invokeDetached