Timeline play function returns undefined, not this

Issue: The timeline’s play function does not return this as described in the documentation and suggested by typescript. Instead, it returns undefined. This means that I can’t chain anything after calling play. The following line makes the app freeze:

symbol.controllers.mycontroller.elements.mytimeline.reset().play().one("complete", () => {});

Affecting: Zapworks Studio, WebAR

Workaround: Don’t chain after calling play. Following the example, to fix the issue use

symbol.controllers.mycontroller.elements.mytimeline.reset().play();
symbol.controllers.mycontroller.elements.mytimeline.one(“complete”, () => {});

1 Like