MCPcopy Create free account
hub / github.com/TruthHun/BookStack / initLifecycle

Function initLifecycle

static/vuejs/vue.esm.js:1992–2016  ·  view source on GitHub ↗
(vm)

Source from the content-addressed store, hash-verified

1990var activeInstance = null;
1991
1992function initLifecycle (vm) {
1993 var options = vm.$options;
1994
1995 // locate first non-abstract parent
1996 var parent = options.parent;
1997 if (parent && !options.abstract) {
1998 while (parent.$options.abstract && parent.$parent) {
1999 parent = parent.$parent;
2000 }
2001 parent.$children.push(vm);
2002 }
2003
2004 vm.$parent = parent;
2005 vm.$root = parent ? parent.$root : vm;
2006
2007 vm.$children = [];
2008 vm.$refs = {};
2009
2010 vm._watcher = null;
2011 vm._inactive = null;
2012 vm._directInactive = false;
2013 vm._isMounted = false;
2014 vm._isDestroyed = false;
2015 vm._isBeingDestroyed = false;
2016}
2017
2018function lifecycleMixin (Vue) {
2019 Vue.prototype._update = function (vnode, hydrating) {

Callers 1

initMixinFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected