Sha256: 0971347968a32825ceef7949e22a73a41e512fbce5927c68d4f265edf8317426
Contents?: true
Size: 1.06 KB
Versions: 19
Compression:
Stored size: 1.06 KB
Contents
(function() { var extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; }, hasProp = {}.hasOwnProperty; if (ELA.Collections == null) { ELA.Collections = {}; } ELA.Collections.NamedObjectCollection = (function(superClass) { extend(NamedObjectCollection, superClass); function NamedObjectCollection(models) { var attributes, name; if (typeof models === 'object') { models = (function() { var results; results = []; for (name in models) { attributes = models[name]; results.push($.extend(attributes, { name: name })); } return results; })(); } NamedObjectCollection.__super__.constructor.apply(this, arguments); } return NamedObjectCollection; })(Backbone.Collection); }).call(this);
Version data entries
19 entries across 19 versions & 1 rubygems