You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by ma...@apache.org on 2007/07/17 16:56:27 UTC
svn commit: r556938 -
/myfaces/trinidad/trunk/trinidad/trinidad-impl/src/main/javascript/META-INF/adf/jsLibs/Locale.js
Author: matzew
Date: Tue Jul 17 07:56:25 2007
New Revision: 556938
URL: http://svn.apache.org/viewvc?view=rev&rev=556938
Log:
replaced (void 0) with null
Modified:
myfaces/trinidad/trunk/trinidad/trinidad-impl/src/main/javascript/META-INF/adf/jsLibs/Locale.js
Modified: myfaces/trinidad/trunk/trinidad/trinidad-impl/src/main/javascript/META-INF/adf/jsLibs/Locale.js
URL: http://svn.apache.org/viewvc/myfaces/trinidad/trunk/trinidad/trinidad-impl/src/main/javascript/META-INF/adf/jsLibs/Locale.js?view=diff&rev=556938&r1=556937&r2=556938
==============================================================================
--- myfaces/trinidad/trunk/trinidad/trinidad-impl/src/main/javascript/META-INF/adf/jsLibs/Locale.js (original)
+++ myfaces/trinidad/trunk/trinidad/trinidad-impl/src/main/javascript/META-INF/adf/jsLibs/Locale.js Tue Jul 17 07:56:25 2007
@@ -28,7 +28,7 @@
digitChar
)
{
- return (_getDigits()[digitChar] != (void 0));
+ return (_getDigits()[digitChar] != null);
}
@@ -38,7 +38,7 @@
*/
function _getDigits()
{
- if (_digits == (void 0))
+ if (_digits == null)
{
// starts of 10 digit unicode ranges
var digitStarts = [
@@ -89,7 +89,7 @@
{
var value = _getDigits()[digitChar];
- if (value == (void 0))
+ if (value == null)
{
return NaN;
}
@@ -227,12 +227,12 @@
{
var language = _locale;
- if (language == (void 0))
+ if (language == null)
{
// try this the IE way
language = window.navigator.userLanguage;
- if (language == (void 0))
+ if (language == null)
{
// try this the Netscape way
language = window.navigator.language;
@@ -249,7 +249,7 @@
)
{
// default to the user language if no language is passed in
- if (javascriptLang == (void 0))
+ if (javascriptLang == null)
{
javascriptLang = getUserLanguage();
}
@@ -308,7 +308,7 @@
{
var localeSymbols = window["LocaleSymbols_" + suffix];
- if (localeSymbols != (void 0))
+ if (localeSymbols != null)
{
return localeSymbols;
}
@@ -372,7 +372,7 @@
function _getDecimalSeparator()
{
- if (_decimalSep != (void 0))
+ if (_decimalSep != null)
return _decimalSep;
return this.getLocaleElements()["NumberElements"][0];