Uploaded image for project: 'Appcelerator - INBOX'
  1. Appcelerator - INBOX
  2. AC-6108

Calling close() with a Ti.UI.Animation will run before $.destroy() causing binding events to fire on close.

    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.

        Attachments

          Activity

            People

            • Assignee:
              shossain Shak Hossain
              Reporter:
              nickkemp Nick Kemp
            • Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Git Source Code