Sha256: d665cc8d0f3399fd7fc94c47b29e469e09530c7e696a3c5649e22a9d23e63e5f
Contents?: true
Size: 416 Bytes
Versions: 28
Compression:
Stored size: 416 Bytes
Contents
pageflow.WidgetsCollection = Backbone.Collection.extend({ model: pageflow.Widget, initialize: function(models, options) { options = options || {}; this.subject = options.subject; }, url: function() { return this.subject.widgetsUrlRoot() + '/widgets'; }, }); pageflow.WidgetsCollection.createForSubject = function(subject) { return new pageflow.WidgetsCollection([], {subject: subject}); };
Version data entries
28 entries across 28 versions & 1 rubygems