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

Cannot add the same listener to multiple paths for the same ChangeApplier event

    XMLWordPrintable

    Details

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

      Description

      Discovered during pager rewrite for FLUID-4035. In the following sequence, we want the same listener to guard two paths:

      that.applier.postGuards.addListener(

      {path: "pageSize", transactional: true}

      ,
      fluid.pager.pageCountGuard);
      that.applier.postGuards.addListener(

      {path: "totalRange", transactional: true}

      ,
      fluid.pager.pageCountGuard);

      As a result of the sleazy "implementation sharing" with the underlying Fluid event firer, the system recognises this as an attempt to add the same listener which is given the same namespace each time and so dislodges itself. It would probably be better just to get rid of the implementation sharing given this complicates the implementation both of the basic Fluid events system (with its peculiar "fireToListeners" method) and DataBinding alike.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved: