Titanium JIRA Archive
Appcelerator Community (AC)

[AC-1321] Alloy XML Markup - event handler executed twice

GitHub Issuen/a
TypeBug
Priorityn/a
StatusClosed
ResolutionFixed
Resolution Date2014-07-02T00:59:16.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsAlloy, Titanium SDK & CLI
Labelsalloy, mobile, titanium
ReporterShawn Lan
AssigneeMauro Parra-Miranda
Created2014-06-27T18:14:07.000+0000
Updated2016-03-08T07:37:43.000+0000

Description

~~~ ~~~ The idea of this markup is that if it's on iPad, it's a popover. If it's on iPhone, it's a modal window. Everything works fine except that view1Click is always executed twice every time view1 is clicked.

Comments

  1. Mauro Parra-Miranda 2014-07-02

    Hello! This is working fine in 3.3.0.Beta. Here is an updated testcase:
       <Alloy>
           <Popover id="win1" width="350" height="350" formFactor="tablet">
               <View id="view1" onClick="view1Click" backgroundColor="blue"/>
           </Popover>
           <NavigationWindow id="nav1" formFactor="handheld" modal="true">
               <Window id="win1">
                   <View id="view1" onClick="view1Click" backgroundColor="blue"/>
               </Window>
           </NavigationWindow>
       </Alloy>
       

JSON Source