mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-23 00:01:29 +00:00
upgrade Dojo to 1.6.1
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
Copyright (c) 2004-2010, The Dojo Foundation All Rights Reserved.
|
||||
Copyright (c) 2004-2011, The Dojo Foundation All Rights Reserved.
|
||||
Available via Academic Free License >= 2.1 OR the modified BSD license.
|
||||
see: http://dojotoolkit.org/license for details
|
||||
*/
|
||||
@@ -8,12 +8,13 @@
|
||||
if(!dojo._hasResource["dojo.currency"]){ //_hasResource checks added by build. Do not use _hasResource directly in your code.
|
||||
dojo._hasResource["dojo.currency"] = true;
|
||||
dojo.provide("dojo.currency");
|
||||
|
||||
dojo.require("dojo.number");
|
||||
dojo.require("dojo.i18n");
|
||||
dojo.requireLocalization("dojo.cldr", "currency", null, "ROOT,ar,ca,cs,da,de,el,en,en-au,en-ca,es,fi,fr,he,hu,it,ja,ko,nb,nl,pl,pt,ru,sk,sl,sv,th,tr,zh,zh-tw");
|
||||
dojo.requireLocalization("dojo.cldr", "currency", null, "ROOT,ar,ca,cs,da,de,el,en,en-au,en-ca,es,fi,fr,he,hu,it,ja,ko,nb,nl,pl,pt,ro,ru,sk,sl,sv,th,tr,zh,zh-hant,zh-hk,zh-tw");
|
||||
dojo.require("dojo.cldr.monetary");
|
||||
|
||||
dojo.getObject("currency", true, dojo);
|
||||
|
||||
/*=====
|
||||
dojo.currency = {
|
||||
// summary: localized formatting and parsing routines for currencies
|
||||
@@ -47,7 +48,7 @@ dojo.currency._mixInDefaults = function(options){
|
||||
|
||||
// Mixin with provided options
|
||||
return dojo.mixin(data, options);
|
||||
}
|
||||
};
|
||||
|
||||
/*=====
|
||||
dojo.declare("dojo.currency.__FormatOptions", [dojo.number.__FormatOptions], {
|
||||
@@ -82,7 +83,7 @@ dojo.currency.format = function(/*Number*/value, /*dojo.currency.__FormatOptions
|
||||
// the number to be formatted.
|
||||
|
||||
return dojo.number.format(value, dojo.currency._mixInDefaults(options));
|
||||
}
|
||||
};
|
||||
|
||||
dojo.currency.regexp = function(/*dojo.number.__RegexpOptions?*/options){
|
||||
//
|
||||
@@ -93,7 +94,7 @@ dojo.currency.regexp = function(/*dojo.number.__RegexpOptions?*/options){
|
||||
// Returns regular expression with positive and negative match, group and decimal separators
|
||||
// Note: the options.places default, the number of decimal places to accept, is defined by the currency type.
|
||||
return dojo.number.regexp(dojo.currency._mixInDefaults(options)); // String
|
||||
}
|
||||
};
|
||||
|
||||
/*=====
|
||||
dojo.declare("dojo.currency.__ParseOptions", [dojo.number.__ParseOptions], {
|
||||
@@ -134,6 +135,6 @@ dojo.currency.parse = function(/*String*/expression, /*dojo.currency.__ParseOpti
|
||||
// expression: A string representation of a currency value
|
||||
|
||||
return dojo.number.parse(expression, dojo.currency._mixInDefaults(options));
|
||||
}
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user