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 "use strict" declarations to runtime files #676

Closed
wants to merge 1 commit into from

Conversation

@zbirkenbuel
Copy link
Contributor

zbirkenbuel commented Jan 18, 2017

Runtime script files are now decorated with "use strict"; statements to keep them in compliance with standard stylecop and eslint style checks. Globalize code is already strict mode compliant. This change will not affect browser compatibility since older browsers will simply ignore the statement. Currently only modifying the built "runtime" files.

strict mode statements are contained within the module loader and factory function scopes so that they do not interfere with other files loaded in a browser.

@jsf-clabot
Copy link

jsf-clabot commented Jan 18, 2017

CLA assistant check
All committers have signed the CLA.

@zbirkenbuel zbirkenbuel force-pushed the HBOCodeLabs:strict branch from 8da99be to 3d3f14a Jan 18, 2017
Runtime script files are now decorated with "use strict"; statements
to keep them in compliance with standard stylecop and eslint style checks.
Globalize code is already strict mode compliant.  This change will not
affect browser compatability since older browsers will simply ignore the
statement.  Currently only modifying the built "runtime" files.
@zbirkenbuel zbirkenbuel force-pushed the HBOCodeLabs:strict branch from 3d3f14a to c92875f Jan 18, 2017
@jzaefferer
Copy link
Contributor

jzaefferer commented Mar 12, 2017

About half the time the indentation is inconsistent with the following line of code. Otherwise this looks fine to me.

@rxaviers rxaviers added this to the 1.3.0 milestone Mar 17, 2017
@rxaviers rxaviers closed this in c2b26fa Apr 12, 2017
rxaviers added a commit that referenced this pull request Apr 12, 2017
@rxaviers
Copy link
Member

rxaviers commented Apr 12, 2017

Merged. Thank you @zbirkenbuel and @jzaefferer for reviewing it.

@zbirkenbuel zbirkenbuel deleted the HBOCodeLabs:strict branch Apr 13, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

4 participants
You can’t perform that action at this time.