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

[TIMOB-26403] Explicitly expose Alloy, _, and Backbone off the global object when it's available #913

Closed
wants to merge 3 commits into from

Conversation

sgtcoolguy
Copy link
Contributor

JIRA: https://jira.appcelerator.org/browse/TIMOB-26403

Description:
This modifies the app.js template so that we don't simply declare Alloy, _, and Backbone as top-level variables, we also explicitly assign them as properties off global when there is a global.

We intend to remove exposing top-level app.js variables as implicit globals in the future (SDK 9?).

…obal object when it's available. We intend to remove implicit globals via app.js top-level variables in the future.
@sgtcoolguy sgtcoolguy added the bug label Oct 2, 2018
@sgtcoolguy sgtcoolguy requested a review from feons October 2, 2018 16:01
*/
var Alloy = require('/alloy'),
var Alloy = require('/alloy');
_ = Alloy._,
Backbone = Alloy.Backbone;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why declare _ and Backbone without var?

@sgtcoolguy sgtcoolguy closed this Oct 2, 2018
@sgtcoolguy
Copy link
Contributor Author

Closed in favor of #911

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

Successfully merging this pull request may close these issues.

None yet

2 participants