[AC-1321] Alloy XML Markup - event handler executed twice
| GitHub Issue | n/a |
|---|---|
| Type | Bug |
| Priority | n/a |
| Status | Closed |
| Resolution | Fixed |
| Resolution Date | 2014-07-02T00:59:16.000+0000 |
| Affected Version/s | n/a |
| Fix Version/s | n/a |
| Components | Alloy, Titanium SDK & CLI |
| Labels | alloy, mobile, titanium |
| Reporter | Shawn Lan |
| Assignee | Mauro Parra-Miranda |
| Created | 2014-06-27T18:14:07.000+0000 |
| Updated | 2016-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.
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>