Titanium JIRA Archive
Alloy (ALOY)

[ALOY-1687] iOS: In Alloy, Empty LeftNavButtons tag generates unrunnable code

GitHub Issuen/a
TypeBug
Priorityn/a
StatusOpen
ResolutionUnresolved
Affected Version/sCLI Release 7.0.10
Fix Version/sn/a
Componentsn/a
LabelsAlloy, android, iOS
ReporterBrenton House
AssigneeUnknown
Created2017-05-23T16:18:41.000+0000
Updated2019-05-17T20:50:43.000+0000

Description

In a view, if the LeftNavButtons tag does not have a body, it does not generate the declaration and instantiation of the variable leftNavButtons. The same happens for rightNavButtons as well. view xml
<Alloy>
  <Window>
     <LeftNavButtons />
  </Window>
</Alloy>
error: {noformat} [ERROR] ReferenceError: Can't find variable: leftNavButtons {noformat}

Comments

  1. Sharif AbuDarda 2017-05-23

    Hello, I can reproduce the error in iOS. With SDK 6.0.4.GA. Empty LeftNavButtons tag shows error during run. Thanks.

JSON Source