FLUID-5099: fluid.addSourceGuardedListener will not trigger a listener if the model path and renderer selector are the same

Metadata

Source
FLUID-5099
Type
Bug
Priority
Major
Status
Closed
Resolution
Fixed
Assignee
N/A
Reporter
Justin Obara
Created
2013-07-22T14:18:05.987-0400
Updated
2013-08-15T11:10:31.434-0400
Versions
N/A
Fixed Versions
N/A
Component
  1. Framework

Description

When using fluid.addSourceGuardedListener with a renderer component. If the model path, and the render selector are the same, it will think the sources are identical and will prevent the listener from firing. This is because the source is set as the node.id which happens to be the selector.

This was found while working on FLUID-4907 where the panels communicate with the enactors through a model relay.

https://github.com/jobara/infusion/blob/FLUID-4907/src/webapp/components/uiOptions/js/Panels.js#L115-L135

https://github.com/jobara/infusion/blob/FLUID-4907/src/webapp/components/uiOptions/js/ModelRelay.js

The path in the external model is set to "textFont" but this is also the selector used to render the input.

Comments

  • Justin Obara commented 2013-08-15T11:10:20.276-0400

    Was fixed with the work for FLUID-4907 at eaf41aa06eb9c398fff816542afaca4348f98c83