Titanium JIRA Archive
Appcelerator Community (AC)

[AC-1148] Alloy generates events for 'ignored' tags.

GitHub Issuen/a
TypeBug
Priorityn/a
StatusResolved
ResolutionCannot Reproduce
Resolution Date2014-05-19T06:42:13.000+0000
Affected Version/sn/a
Fix Version/sn/a
Componentsn/a
Labelsn/a
ReporterRanando Kking
AssigneeRitu Agrawal
Created2014-05-02T22:25:39.000+0000
Updated2016-03-08T07:37:30.000+0000

Description

Steps to Reproduce

Create an XML alloy view with at least 2 platform-specific layouts. In the xml, attach the same onClick handler to a corresponding control in each of the platform-specific layouts. Run the app and trigger the event.

Actual Result

Alloy generates event registration code for the XML portion it should have ignored as well as the portion that was intended. See the bottom of the Resources version of the controller file and you will find __defers for the XML that should have been ignored. A controller like this will cause the problem.

Attachments

FileDateSize
.log2014-05-02T22:25:41.000+00003042064
diagnostic8284887980574597254.log2014-05-02T22:25:44.000+000015579

Comments

  1. Ritu Agrawal 2014-05-02

    Please attach a simple but complete runnable test case to diagnose the issue further.
  2. Ritu Agrawal 2014-05-19

    Resolving this ticket as I cannot reproduce this issue and the reporter has not provided requested information.

JSON Source