Sha256: ad9a93c0dd87d64dd04a7e2710fdddcce846035965882766b63d924d26c41dda
Contents?: true
Size: 900 Bytes
Versions: 7
Compression:
Stored size: 900 Bytes
Contents
# ----------------------------------------------------------------------------- # Author: Alexander Kravets <alex@slatestudio.com>, # Slate Studio (http://www.slatestudio.com) # # Coding Guide: # https://github.com/thoughtbot/guides/tree/master/style/coffeescript # ----------------------------------------------------------------------------- # ----------------------------------------------------------------------------- # OBJECT STORE # ----------------------------------------------------------------------------- class @ObjectStore constructor: (@config={}) -> @_initialize_store() # PRIVATE =============================================== _initialize_store: -> @_data = @config.data # PUBLIC ================================================ loadObject: -> @_data update: (id, value, callback) -> $.extend(@_data, value) callback?(@_data)
Version data entries
7 entries across 7 versions & 1 rubygems