Titanium JIRA Archive
Alloy (ALOY)

[ALOY-693] Alloy: Detect using the same ID for multiple view elements

GitHub Issuen/a
ResolutionWon't Fix
Resolution Date2014-01-17T17:59:01.000+0000
Affected Version/sn/a
Fix Version/sn/a
Labelsalloy, compiler, validation, views
ReporterFokke Zandbergen
AssigneeTony Lukasavage


We could expand the validation asked for in ALOY-682, to do detect using the same ID any multiple view elements (which causes conflicts). This seems like an easy thing to do, but as [Tony points out](https://github.com/appcelerator/alloy/pull/140#issuecomment-18973129), conditional view elements make it more challenging.


  1. Tony Lukasavage 2014-01-17

    Considering the runtime conditionals make this pretty much impossible, since we can't determine whether they are valid or not until runtime, I'd rather not implement this as a complex, incomplete solution. If this turns out to be a major issue, we can revisit, but for now I'm going to close this.
  2. Fokke Zandbergen 2014-01-17

    Totally understand. Something related that I don't know a ticket exists for is that the existing warning is also given when the root element manually has been given a different then default ID. It will then still warn if child elements use an ID named after the controller.

JSON Source