Uploaded image for project: 'Alloy'
  1. Alloy
  2. ALOY-1303

$.removeListener() should be called by $.destroy()

    Details

    • Type: Improvement
    • Status: Open
    • Priority: None
    • Resolution: Unresolved
    • Affects Version/s: Alloy 1.7.1
    • Fix Version/s: None
    • Component/s: Runtime
    • Labels:
      None
    • Environment:

      Alloy 1.7.8

      Description

      The current implementation of ALOY-1237 uses the new $.addListener() method for any event listeners set on proxy objects via the XML.

      This way the user can remove all or specific event listeners via $.removeListener().

      It would be better if the template for $.destroy() would include a call to $.removeListener() so that the user only has to call $.destroy() to both clean up listeners to global collections as well as local proxies.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                batman Bruce Wayne
                Reporter:
                fokkezb Fokke Zandbergen
              • Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:

                  Backbone Issue Sync

                  • Backbone Issue Sync is enabled for your project, but we do not have any synchronization info for this issue.

                    Git Integration