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

Add ability to use hyphenated names for custom module xml elements #32

Open
brentonhouse opened this issue Apr 6, 2016 · 0 comments
Open

Comments

@brentonhouse
Copy link
Contributor

Currently the way the code is generated for a controller, a hyphenated name will break the code when it runs.

Xml View

    <action-bar id="test_actionbar_1" text="This is a test actionbar 1"  module="test/ui" />

Currently Generated Code

    $.__views.test_actionbar_1 = (require("test/ui").createaction - bar || Ti.UI.createaction - bar)({
        id: "test_actionbar_1",
        text: "This is a test actionbar 1"
    });

Proposed Generated Code

    $.__views.test_actionbar_1 = (require("test/ui")["createaction-bar"] || Ti.UI["createaction-bar"])({
        id: "test_actionbar_1",
        text: "This is a test actionbar 1"
    });
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant