torso-bundle.js
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();
        }
      });
    }
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();
        }
      });
    }
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 ( ) ; } } ) ; }
Call this method when a view is detached from the DOM. It is recursive to child views.
@method __invokeDetached
Call this method when a view is detached from the DOM . It is recursive to child views .