MCPcopy Index your code
hub / github.com/spritejs/spritejs / connect

Method connect

src/node/node.js:250–265  ·  view source on GitHub ↗
(parent, zOrder)

Source from the content-addressed store, hash-verified

248 }
249
250 connect(parent, zOrder) {
251 Object.defineProperty(this, 'parent', {
252 value: parent,
253 writable: false,
254 configurable: true,
255 });
256 Object.defineProperty(this, 'zOrder', {
257 value: zOrder,
258 writable: false,
259 configurable: true,
260 });
261 if(parent.timeline) this.activateAnimations();
262 this.setResolution(parent.getResolution());
263 this.forceUpdate();
264 this.dispatchEvent({type: 'append', detail: {parent, zOrder}});
265 }
266
267 contains(node) {
268 while(node && this !== node) {

Callers 6

group.jsFile · 0.45
CloudFunction · 0.45
appendChildMethod · 0.45
insertBeforeMethod · 0.45
replaceChildMethod · 0.45
constructorMethod · 0.45

Calls 5

activateAnimationsMethod · 0.95
setResolutionMethod · 0.95
forceUpdateMethod · 0.95
dispatchEventMethod · 0.95
getResolutionMethod · 0.45

Tested by

no test coverage detected