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

Version Path
pageflow-0.9.0 app/assets/javascripts/pageflow/editor/collections/widgets_collection.js
pageflow-0.8.2 app/assets/javascripts/pageflow/editor/collections/widgets_collection.js
pageflow-0.8.1 app/assets/javascripts/pageflow/editor/collections/widgets_collection.js
pageflow-0.8.0 app/assets/javascripts/pageflow/editor/collections/widgets_collection.js
pageflow-0.7.2 app/assets/javascripts/pageflow/editor/collections/widgets_collection.js
pageflow-0.7.1 app/assets/javascripts/pageflow/editor/collections/widgets_collection.js
pageflow-0.7.0 app/assets/javascripts/pageflow/editor/collections/widgets_collection.js
pageflow-0.6.0 app/assets/javascripts/pageflow/editor/collections/widgets_collection.js