MCPcopy Index your code
hub / github.com/keepfool/vue-tutorials / singleRemove

Function singleRemove

06.Router/basic/js/vue.js:3819–3830  ·  view source on GitHub ↗

* Remove fragment, single node version

()

Source from the content-addressed store, hash-verified

3817 */
3818
3819 function singleRemove() {
3820 this.inserted = false;
3821 var shouldCallRemove = inDoc(this.node);
3822 var self = this;
3823 this.beforeRemove();
3824 removeWithTransition(this.node, this.vm, function () {
3825 if (shouldCallRemove) {
3826 self.callHook(detach);
3827 }
3828 self.destroy();
3829 });
3830 }
3831
3832 /**
3833 * Insert fragment before target, multi-nodes version

Callers

nothing calls this directly

Calls 2

inDocFunction · 0.70
removeWithTransitionFunction · 0.70

Tested by

no test coverage detected