Do not leak "tmp" variable to globals

This commit is contained in:
Sandro Santilli 2012-07-13 11:11:30 +02:00
parent ce4f99fa7f
commit aee257c5ef

View File

@ -28,7 +28,7 @@ var real_oauth_header = 'OAuth realm="http://vizzuality.testhost.lan/",oauth_con
// use dec_sep for internationalization
var checkDecimals = function(x, dec_sep){
tmp='' + x;
var tmp='' + x;
if (tmp.indexOf(dec_sep)>-1)
return tmp.length-tmp.indexOf(dec_sep)-1;
else