Sha256: c6b09a372f84718546136af7e97e8eba3594236ead8c833b58955e7dc5e1d1f3

Contents?: true

Size: 248 Bytes

Versions: 7

Compression:

Stored size: 248 Bytes

Contents

# ---------------------------------------------------------
# COMPACT OBJECT  (used in generic model)
# ---------------------------------------------------------

_.mixin
  compactObject: (o) ->
    _.each o, (v, k) -> if !v then delete o[k] else o

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
character-1.0.6 app/assets/javascripts/character/generic/helpers/compact_object.coffee
character-1.0.5 app/assets/javascripts/character/generic/helpers/compact_object.coffee
character-1.0.4 app/assets/javascripts/character/generic/helpers/compact_object.coffee
character-1.0.3 app/assets/javascripts/character/generic/helpers/compact_object.coffee
character-1.0.2 app/assets/javascripts/character/generic/helpers/compact_object.coffee
character-1.0.1 app/assets/javascripts/character/generic/helpers/compact_object.coffee
character-1.0.0 app/assets/javascripts/character/generic/helpers/compact_object.coffee