Open onsetsu opened 6 years ago
expandChild asynchronously fetches the child layer of a VivideObject.
expandChild
VivideObject
Having a VivideView dynamically setting the expandChild method onto a widget, seems counterintuitive.
VivideView
Instead, this method should be exposed by the VivideObject itself:
childLayer = await vivideObject.getChildren();
Also, a widget should not be in charge of setting the childLayer of a VivideObject:
childLayer
object.childLayer = await this.expandChild(childData, childLayer.script);
expandChild
asynchronously fetches the child layer of aVivideObject
.Having a
VivideView
dynamically setting theexpandChild
method onto a widget, seems counterintuitive.Instead, this method should be exposed by the
VivideObject
itself:Also, a widget should not be in charge of setting the
childLayer
of aVivideObject
: