Sha256: c4c058ca34fe0ad96c21ce9fe98d658593a57bd3c2bec13898a9a6f61601160b

Contents?: true

Size: 251 Bytes

Versions: 19

Compression:

Stored size: 251 Bytes

Contents

ELA.Collections ?= {}
class ELA.Collections.NamedObjectCollection extends Backbone.Collection
  constructor: (models) ->
    if typeof models is 'object'
      models = for name, attributes of models
        $.extend(attributes, name: name)
    super

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
ela-4.1.6 app/js/lib/collections/named_object_collection.coffee
ela-4.1.5 app/js/lib/collections/named_object_collection.coffee
ela-4.1.4 app/js/lib/collections/named_object_collection.coffee
ela-4.1.3 app/js/lib/collections/named_object_collection.coffee
ela-4.1.2 app/js/lib/collections/named_object_collection.coffee
ela-4.1.1 app/js/lib/collections/named_object_collection.coffee
ela-4.1.0 app/js/lib/collections/named_object_collection.coffee
ela-4.0.0 app/js/lib/collections/named_object_collection.coffee
ela-3.4.3 app/js/lib/collections/named_object_collection.coffee
ela-3.4.2 app/js/lib/collections/named_object_collection.coffee
ela-3.4.0 app/js/lib/collections/named_object_collection.coffee
ela-3.3.1 app/js/lib/collections/named_object_collection.coffee
ela-3.3.0 app/js/lib/collections/named_object_collection.coffee
ela-3.2.0 app/js/lib/collections/named_object_collection.coffee
ela-3.1.1 app/js/lib/collections/named_object_collection.coffee
ela-3.1.0 app/js/lib/collections/named_object_collection.coffee
ela-3.0.0 app/js/lib/collections/named_object_collection.coffee
ela-2.0.0 app/js/lib/collections/named_object_collection.coffee
ela-1.1.0 app/js/lib/collections/named_object_collection.coffee