Skip to content

Commit 40897f4

Browse files
committed
Merge pull request #99 from wmde/missingBreak
Add missing break to globeCoordinate.Formatter
2 parents 33622aa + 944222a commit 40897f4

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

lib/globeCoordinate/globeCoordinate.Formatter.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@
1616
{ precision: 1 / 3600, text: 'to an arcsecond' },
1717
{ precision: 1 / 36000, text: 'to 1/10 of an arcsecond' },
1818
{ precision: 1 / 360000, text: 'to 1/100 of an arcsecond' },
19-
{ precision: 1 / 3600000, text: 'to 1/1000 of an arcsecond' }
19+
{ precision: 1 / 3600000, text: 'to 1/1000 of an arcsecond' },
20+
{ precision: 1 / 36000000, text: '1/10000\'' }
2021
],
2122
format: 'decimal'
2223
};
@@ -152,8 +153,9 @@
152153
// Figure out if the precision is very close to a precision that can be expressed with a
153154
// string:
154155
for( var i in combinedOptions.precisionTexts ) {
155-
if( Math.abs( precision - combinedOptions.precisionTexts[i].precision ) < 0.0000001 ) {
156+
if ( Math.abs( precision - combinedOptions.precisionTexts[i].precision ) < 0.000000000001 ) {
156157
precisionText = combinedOptions.precisionTexts[i].text;
158+
break;
157159
}
158160
}
159161

0 commit comments

Comments
 (0)