Sha256: 0d9c0cba265c831d5ddee0e43b38d091df1a42eeb8070f7e46c5126dc359f3bb

Contents?: true

Size: 781 Bytes

Versions: 4

Compression:

Stored size: 781 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_database()

  _initialize_database: ->
    @_data = @config.data

  loadObject: ->
    @_data

  update: (id, value, callback) ->
    $.extend(@_data, value)
    callback?(@_data)




Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
chr-0.2.5 app/assets/javascripts/chr/store/_object-store.coffee
chr-0.2.4 app/assets/javascripts/chr/store/_object-store.coffee
chr-0.2.1 app/assets/javascripts/chr/store/_object-store.coffee
chr-0.2.0 app/assets/javascripts/chr/store/_object-store.coffee