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

Metadata

Source
FLUID-5151
Type
Bug
Priority
Critical
Status
Closed
Resolution
Won't Fix
Assignee
Antranig Basman
Reporter
Cindy Li
Created
2013-09-24T11:57:07.761-0400
Updated
2014-04-02T16:13:48.257-0400
Versions
N/A
Fixed Versions
N/A
Component
  1. Framework

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

Comments

  • Anastasia Cheetham commented 2014-04-02T16:13:48.246-0400

    The new changeapplier eliminates this problem