You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@vcl.apache.org by jf...@apache.org on 2012/11/15 15:25:07 UTC
svn commit: r1409803 - /vcl/trunk/web/js/code.js
Author: jfthomps
Date: Thu Nov 15 14:25:06 2012
New Revision: 1409803
URL: http://svn.apache.org/viewvc?rev=1409803&view=rev
Log:
VCL-619
usenls may be undefined in _() function in requests.js
code.js: modified _() - corrected test for usenls being undefined
Modified:
vcl/trunk/web/js/code.js
Modified: vcl/trunk/web/js/code.js
URL: http://svn.apache.org/viewvc/vcl/trunk/web/js/code.js?rev=1409803&r1=1409802&r2=1409803&view=diff
==============================================================================
--- vcl/trunk/web/js/code.js (original)
+++ vcl/trunk/web/js/code.js Thu Nov 15 14:25:06 2012
@@ -36,7 +36,9 @@ function setBrowser() {
setBrowser();
function _(str) {
- if(! usenls || ! (str in nlsmessages))
+ if(typeof usenls == 'undefined' ||
+ typeof nlsmessages == 'undefined' ||
+ ! (str in nlsmessages))
return str;
return nlsmessages[str];
}