[ALOY-1687] iOS: In Alloy, Empty LeftNavButtons tag generates unrunnable code
| GitHub Issue | n/a |
|---|---|
| Type | Bug |
| Priority | n/a |
| Status | Open |
| Resolution | Unresolved |
| Affected Version/s | CLI Release 7.0.10 |
| Fix Version/s | n/a |
| Components | n/a |
| Labels | Alloy, android, iOS |
| Reporter | Brenton House |
| Assignee | Unknown |
| Created | 2017-05-23T16:18:41.000+0000 |
| Updated | 2019-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}
Hello, I can reproduce the error in iOS. With SDK 6.0.4.GA. Empty LeftNavButtons tag shows error during run. Thanks.