Skip to content

Commit

Permalink
Component: Updated build template files to enable strict mode for run…
Browse files Browse the repository at this point in the history
…time files

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.
  • Loading branch information
Zack Birkenbuel committed Jan 18, 2017
1 parent 26f6b01 commit 8da99be
Show file tree
Hide file tree
Showing 8 changed files with 32 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/build/intro-core-runtime.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
*/
(function( root, factory ) {

"use strict";

// UMD returnExports
if ( typeof define === "function" && define.amd ) {

Expand All @@ -30,3 +32,5 @@
root.Globalize = factory();
}
}( this, function() {

"use strict";
4 changes: 4 additions & 0 deletions src/build/intro-currency-runtime.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
*/
(function( root, factory ) {

"use strict";

// UMD returnExports
if ( typeof define === "function" && define.amd ) {

Expand All @@ -37,6 +39,8 @@
}
}(this, function( Globalize ) {

"use strict";

var formatMessage = Globalize._formatMessage,
runtimeKey = Globalize._runtimeKey,
validateParameterPresence = Globalize._validateParameterPresence,
Expand Down
4 changes: 4 additions & 0 deletions src/build/intro-date-runtime.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
*/
(function( root, factory ) {

"use strict";

// UMD returnExports
if ( typeof define === "function" && define.amd ) {

Expand All @@ -37,6 +39,8 @@
}
}(this, function( Globalize ) {

"use strict";

var createErrorUnsupportedFeature = Globalize._createErrorUnsupportedFeature,
regexpEscape = Globalize._regexpEscape,
removeLiteralQuotes = Globalize._removeLiteralQuotes,
Expand Down
4 changes: 4 additions & 0 deletions src/build/intro-message-runtime.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
*/
(function( root, factory ) {

"use strict";

// UMD returnExports
if ( typeof define === "function" && define.amd ) {

Expand All @@ -33,5 +35,7 @@
}
}(this, function( Globalize ) {

"use strict";

var runtimeKey = Globalize._runtimeKey,
validateParameterType = Globalize._validateParameterType;
4 changes: 4 additions & 0 deletions src/build/intro-number-runtime.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
*/
(function( root, factory ) {

"use strict";

// UMD returnExports
if ( typeof define === "function" && define.amd ) {

Expand All @@ -33,6 +35,8 @@
}
}(this, function( Globalize ) {

"use strict";

var createError = Globalize._createError,
regexpEscape = Globalize._regexpEscape,
runtimeKey = Globalize._runtimeKey,
Expand Down
4 changes: 4 additions & 0 deletions src/build/intro-plural-runtime.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
*/
(function( root, factory ) {

"use strict";

// UMD returnExports
if ( typeof define === "function" && define.amd ) {

Expand All @@ -33,6 +35,8 @@
}
}(this, function( Globalize ) {

"use strict";

var runtimeKey = Globalize._runtimeKey,
validateParameterPresence = Globalize._validateParameterPresence,
validateParameterType = Globalize._validateParameterType;
4 changes: 4 additions & 0 deletions src/build/intro-relative-time-runtime.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
*/
(function( root, factory ) {

"use strict";

// UMD returnExports
if ( typeof define === "function" && define.amd ) {

Expand All @@ -39,6 +41,8 @@
}
}(this, function( Globalize ) {

"use strict";

var formatMessage = Globalize._formatMessage,
runtimeKey = Globalize._runtimeKey,
validateParameterPresence = Globalize._validateParameterPresence,
Expand Down
4 changes: 4 additions & 0 deletions src/build/intro-unit-runtime.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
*/
(function( root, factory ) {

"use strict";

// UMD returnExports
if ( typeof define === "function" && define.amd ) {

Expand All @@ -39,6 +41,8 @@
}
}(this, function( Globalize ) {

"use strict";

var formatMessage = Globalize._formatMessage,
runtimeKey = Globalize._runtimeKey,
validateParameterPresence = Globalize._validateParameterPresence,
Expand Down

0 comments on commit 8da99be

Please sign in to comment.