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

Function multiBefore

06.Router/basic/js/vue.js:3839–3849  ·  view source on GitHub ↗

* Insert fragment before target, multi-nodes version * * @param {Node} target * @param {Boolean} withTransition

(target, withTransition)

Source from the content-addressed store, hash-verified

3837 */
3838
3839 function multiBefore(target, withTransition) {
3840 this.inserted = true;
3841 var vm = this.vm;
3842 var method = withTransition !== false ? beforeWithTransition : before;
3843 mapNodeRange(this.node, this.end, function (node) {
3844 method(node, target, vm);
3845 });
3846 if (inDoc(this.node)) {
3847 this.callHook(attach);
3848 }
3849 }
3850
3851 /**
3852 * Remove fragment, multi-nodes version

Callers

nothing calls this directly

Calls 3

mapNodeRangeFunction · 0.70
methodFunction · 0.70
inDocFunction · 0.70

Tested by

no test coverage detected