Details
-
Type:
Improvement
-
Status: Resolved
-
Resolution: Invalid
-
Affects Version/s: None
-
Component/s: Alloy
-
Labels:None
Description
With data binding if you close a view from the controller with a Ti.UI.Animation parameter and have called $.destroy() in the same close function, the animation runs first causing binding events to fire, effective making $.destroy useless in this context. Without an animation parameter $.destroy works as intended.
To remedy I have placed a $.removeListener() call before the $.getView().close(Ti.UI.createAnimation({})) call.
It might be a good idea to pop this in the docs as it's not really a bug.