Changeset 589

Show
Ignore:
Timestamp:
07/02/08 16:55:37 (5 months ago)
Author:
allens
Message:

made Location.fromString() and toString() symmetrical

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/tom-tweenlite/lib/com/modestmaps/geo/Location.as

    r579 r589  
    3131            } 
    3232             
    33             public function toString():String 
     33            public function toString(precision:int=5):String 
    3434            { 
    35                 return '(' + lat.toFixed(3) + ',' + lon.toFixed(3) + ')'
     35                return [lat.toFixed(precision), lon.toFixed(precision)].join(',')
    3636            } 
    3737        }