[OpenLayers-Commits] r5084 - trunk/openlayers/lib/OpenLayers
commits at openlayers.org
commits at openlayers.org
Thu Nov 1 04:31:28 EDT 2007
Author: euzuro
Date: 2007-11-01 04:31:27 -0400 (Thu, 01 Nov 2007)
New Revision: 5084
Modified:
trunk/openlayers/lib/OpenLayers/BaseTypes.js
Log:
couldn't help making this small code reduction. no functional change. all tests pass.
Modified: trunk/openlayers/lib/OpenLayers/BaseTypes.js
===================================================================
--- trunk/openlayers/lib/OpenLayers/BaseTypes.js 2007-11-01 08:23:10 UTC (rev 5083)
+++ trunk/openlayers/lib/OpenLayers/BaseTypes.js 2007-11-01 08:31:27 UTC (rev 5084)
@@ -187,11 +187,9 @@
* 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;
}
More information about the Commits
mailing list