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

Version Path
chr-0.4.13 app/assets/javascripts/stores/object.coffee
chr-0.4.12 app/assets/javascripts/stores/object.coffee
chr-0.4.11 app/assets/javascripts/stores/object.coffee
chr-0.4.10 app/assets/javascripts/stores/object.coffee
chr-0.4.9 app/assets/javascripts/stores/object.coffee
chr-0.3.5 app/assets/javascripts/chr/store/object-store.coffee
chr-0.2.8 app/assets/javascripts/chr/store/_object-store.coffee