diff options
Diffstat (limited to 'examples/location/places/content/places/PlacesUtils.js')
-rw-r--r-- | examples/location/places/content/places/PlacesUtils.js | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/examples/location/places/content/places/PlacesUtils.js b/examples/location/places/content/places/PlacesUtils.js deleted file mode 100644 index 756deb99..00000000 --- a/examples/location/places/content/places/PlacesUtils.js +++ /dev/null @@ -1,12 +0,0 @@ -.pragma library - -function prettyDistance(distance) { - if (distance < 1000) - return distance.toFixed(0) + "m"; - - var km = distance/1000; - if (km < 10) - return km.toFixed(1) + "km"; - - return km.toFixed(0) + "km"; -} |