couldn't help making this small code reduction. no functional change. all tests pass.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5084 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -187,11 +187,9 @@ OpenLayers.Number = {
|
||||
* digits.
|
||||
*/
|
||||
limitSigDigs: function(num, sig) {
|
||||
var fig;
|
||||
if(sig > 0) {
|
||||
var fig = 0;
|
||||
if (sig > 0) {
|
||||
fig = parseFloat(num.toPrecision(sig));
|
||||
} else {
|
||||
fig = 0;
|
||||
}
|
||||
return fig;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user