docs/vendor.js
function detachView(container, removeIndex) {
    var views = container.data[VIEWS];
    var viewNode = views[removeIndex];
    if (removeIndex > 0) {
        views[removeIndex - 1].data[NEXT] = viewNode.data[NEXT];
    }
    views.splice(removeIndex, 1);
    if (!container.tNode.detached) {
        addRemoveViewFromContainer(container, viewNode, false);
    }
    // Notify query that view has been removed
    var removedLView = viewNode.data;
    if (removedLView[QUERIES]) {
        removedLView[QUERIES].removeView();
    }
    removedLView[CONTAINER_INDEX] = -1;
    viewNode.view = null;
    // Unsets the attached flag
    viewNode.data[FLAGS] &= ~8 /* Attached */;
    return viewNode;
}
function detachView(container, removeIndex) {
    var views = container.data[VIEWS];
    var viewNode = views[removeIndex];
    if (removeIndex > 0) {
        views[removeIndex - 1].data[NEXT] = viewNode.data[NEXT];
    }
    views.splice(removeIndex, 1);
    if (!container.tNode.detached) {
        addRemoveViewFromContainer(container, viewNode, false);
    }
    // Notify query that view has been removed
    var removedLView = viewNode.data;
    if (removedLView[QUERIES]) {
        removedLView[QUERIES].removeView();
    }
    removedLView[CONTAINER_INDEX] = -1;
    viewNode.view = null;
    // Unsets the attached flag
    viewNode.data[FLAGS] &= ~8 /* Attached */;
    return viewNode;
}
function detachView ( container , removeIndex ) { var views = container . data [ VIEWS ] ; var viewNode = views [ removeIndex ] ; if ( removeIndex > 0 ) { views [ removeIndex - 1 ] . data [ NEXT ] = viewNode . data [ NEXT ] ; } views . splice ( removeIndex , 1 ) ; if ( ! container . tNode . detached ) { addRemoveViewFromContainer ( container , viewNode , false ) ; } // Notify query that view has been removed var removedLView = viewNode . data ; if ( removedLView [ QUERIES ] ) { removedLView [ QUERIES ] . removeView ( ) ; } removedLView [ CONTAINER_INDEX ] = - 1 ; viewNode . view = null ; // Unsets the attached flag viewNode . data [ FLAGS ] &= ~ 8 /* Attached */ ; return viewNode ; }
Detaches a view from a container.

This method splices the view from the container's array of active views. It also
removes the view's elements from the DOM.

@param container The container from which to detach a view
@param removeIndex The index of the view to detach
@returns The detached view
Detaches a view from a container .