Uploaded image for project: 'Fluid Infusion'
  1. Fluid Infusion
  2. FLUID-5151

One single listener function hooked up for multiple model paths only have the last call registered succesfully

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Won't Fix
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Framework
    • Labels:
      None

      Description

      If the same listener function was hooked up for multiple model paths, such as:

      var listenerToFire = function ()

      { .... }

      ;

      applier.modelChanged.addListener("path1", listenerToFire);
      applier.modelChanged.addListener("path2", listenerToFire);

      When change requests are issued for both "path1" and "path2", rather than having the listener function being triggered twice, only the change request on "path2" is triggered, which leads to an impression that only the last call was registered successful.

      A pull request has been sent for demonstrate this issue: https://github.com/fluid-project/infusion/pull/409

        Attachments

          Activity

            People

            Assignee:
            antranig Antranig Basman
            Reporter:
            cli@ocad.ca Cindy Qi Li
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: