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

Model change listeners are not notified in the case of a DELETE change when they listen on a wildcard path

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0
    • Fix Version/s: 2.1, 3.0
    • Component/s: Data Binder
    • Labels:
      None

      Description

      Model listeners which listen on a wildcard path ending in * are not notified when a DELETE change removes one of the leaves of interest - for example, with this definition:

              modelListeners: {
                  updateComponentView: {
                      path: "idToPath.*",
                      funcName: "fluid.author.componentGraph.updateComponentView",
                      args: ["{that}", "{change}.path", "{change}.value"]
                  }
      

      a change of that.applier.change("idToPath.thing", null, "DELETE") will not trigger the notification. The logic in fluid.matchChanges is faulty and is not prepared for this case.

        Attachments

          Activity

            People

            Assignee:
            antranig Antranig Basman
            Reporter:
            antranig Antranig Basman
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: