Uploaded image for project: 'Alloy'
  1. Alloy
  2. ALOY-844

Alloy - Event Listeners added repeated to different XML formFactors

    Details

      Description

      Example:

      On this code, when click on favorite button on handheld device, favorite function will be fired twice. This is not the correct, because there is only one button to each formFactor.

      <Alloy>
          <NavigationWindow platform="ios" formFactor="tablet">
              <Window id="win">
                  <RightNavButton>
                      <View id="viewButtonsNavBar">
                          <Button id="buttonFavorite" image="/images/Star.png" onClick="favorite" />
                      </View>
                  </RightNavButton>
       
                  <Require type="view" src="place" id="placeView" />
              </Window>
          </NavigationWindow>
       
          <Window platform="ios" formFactor="handheld" id="win">
              <RightNavButton>
                  <View id="viewButtonsNavBar">
                      <Button id="buttonFavorite" image="/images/Star.png" onClick="favorite" />
                  </View>
              </RightNavButton>
          </Window>
      </Alloy>
      

        Attachments

          Activity

            People

            • Assignee:
              skypanther Tim Poulsen
              Reporter:
              rafaelks Rafael Kellermann Streit
            • Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

                • Backbone Issue Sync is enabled for your project, but we do not have any synchronization info for this issue.

                  Git Integration