Find file
Fetching contributors…
Cannot retrieve contributors at this time
19 lines (14 sloc) 456 Bytes
# This is the Location that I store on the global scope.
# I use this object to avoid to manipulate an array, and more, I'm actually a PHP dev and love my get/set methods!
class Geolocation
constructor: (@lat, @long, @cityName, @country, @type = 'ip') ->
getLat: ->
getLong: ->
getCityName: ->
country: ->
window.lycorn = {} if !window.lycorn
window.lycorn.Geolocation = Geolocation