Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions src/common/runtime-bind.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
define([
"./runtime-key",
"../util/function-name"
], function( runtimeKey, functionName ) {
"../util/function-name",
"./runtime-version"
], function( runtimeKey, functionName, runtimeVersion ) {

return function( args, cldr, fn, runtimeArgs ) {

Expand All @@ -23,6 +24,8 @@ return function( args, cldr, fn, runtimeArgs ) {

fn.runtimeArgs = runtimeArgs;

fn.runtimeVersion = runtimeVersion;

return fn;
};

Expand Down
5 changes: 5 additions & 0 deletions src/common/runtime-version.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
define([], function( ) {

return 1;

});
5 changes: 4 additions & 1 deletion src/core-runtime.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,13 @@ define([
"./common/create-error",
"./common/format-message",
"./common/runtime-key",
"./common/runtime-version",
"./common/validate/parameter-presence",
"./common/validate/parameter-type",
"./common/validate/parameter-type/string",
"./util/regexp/escape",
"./util/string/pad"
], function( createError, formatMessage, runtimeKey, validateParameterPresence,
], function( createError, formatMessage, runtimeKey, runtimeVersion, validateParameterPresence,
validateParameterType, validateParameterTypeString, regexpEscape, stringPad ) {

function Globalize( locale ) {
Expand All @@ -30,6 +31,8 @@ Globalize.locale = function( locale ) {
return this._locale;
};

Globalize.runtimeVersion = runtimeVersion;

Globalize._createError = createError;
Globalize._formatMessage = formatMessage;
Globalize._regexpEscape = regexpEscape;
Expand Down
5 changes: 4 additions & 1 deletion src/core.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ define([
"./common/create-error",
"./common/format-message",
"./common/runtime-bind",
"./common/runtime-version",
"./common/validate",
"./common/validate/cldr",
"./common/validate/default-locale",
Expand All @@ -19,7 +20,7 @@ define([
"./util/string/pad",

"cldr/event"
], function( Cldr, createError, formatMessage, runtimeBind, validate, validateCldr,
], function( Cldr, createError, formatMessage, runtimeBind, runtimeVersion, validate, validateCldr,
validateDefaultLocale, validateParameterPresence, validateParameterRange, validateParameterType,
validateParameterTypeLocale, validateParameterTypePlainObject, alwaysArray, alwaysCldr,
isPlainObject, objectExtend, regexpEscape, stringPad ) {
Expand Down Expand Up @@ -86,6 +87,8 @@ Globalize.locale = function( locale ) {
return this.cldr;
};

Globalize.runtimeVersion = runtimeVersion;

/**
* Optimization to avoid duplicating some internal functions across modules.
*/
Expand Down