Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

<Labels platform=""/> assigns wrong variable #1352

Open
m1ga opened this issue Nov 14, 2022 · 0 comments
Open

<Labels platform=""/> assigns wrong variable #1352

m1ga opened this issue Nov 14, 2022 · 0 comments

Comments

@m1ga
Copy link
Contributor

m1ga commented Nov 14, 2022

<Alloy>
    <Window>
        <TabbedBar id="viewSelector">
            <Labels platform="android">
                <Label>List</Label>
                <Label>Map</Label>
            </Labels>
            <Labels platform="ios">
                <Label>List</Label>
                <Label>Map</Label>
            </Labels>
        </TabbedBar>
    </Window>
</Alloy>

produces

...
	if (true) {
		var __alloyId1 = [];
		var __alloyId4 = {
			title: "List"
		};
		__alloyId1.push(__alloyId4);
		var __alloyId5 = {
			title: "Map"
		};
		__alloyId1.push(__alloyId5);
	}
	$.__views["viewSelector"] = Ti.UI.createTabbedBar({
		labels: __alloyId7,
		id: "viewSelector"
	});
...

The array is called __alloyId1 but it is assigning __alloyId17 at the end (which might be the iOS number).

Might be in this file: https://github.com/tidev/alloy/blob/5e9e25e58ce0fac3e8c12e7583297a5f64d27101/Alloy/commands/compile/parsers/Alloy.Abstract._ItemContainer.js

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant