Permalink
Fetching contributors…
Cannot retrieve contributors at this time
18 lines (12 sloc) 341 Bytes
this.vichrome ?= {}
g = this.vichrome
class g.PageMarkRegister
constructor : -> @values = {}
defaultKeyName : "unnamed"
set : (pos, key) ->
unless key? then key = @defaultKeyName
@values[key] = pos
return this
get : (key) ->
unless key? then key = @defaultKeyName
@values[key]