MCPcopy
hub / github.com/vue-leaflet/Vue2Leaflet / findRealParent

Function findRealParent

src/utils/utils.js:119–129  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

117};
118
119export const findRealParent = firstVueParent => {
120 let found = false;
121 while (firstVueParent && !found) {
122 if (firstVueParent.mapObject === undefined) {
123 firstVueParent = firstVueParent.$parent;
124 } else {
125 found = true;
126 }
127 }
128 return firstVueParent;
129};

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected