1 (function ($, Drupal, drupalSettings, Backbone) {
5 Drupal.webprofiler.collectors.Collectors = Backbone.Collection.extend({
6 model: Drupal.webprofiler.models.Collector,
8 url: Drupal.url('admin/reports/profiler/view/' + drupalSettings.webprofiler.token + '/collectors'),
11 * Unselect all models.
13 resetSelected: function () {
14 this.each(function (model) {
15 model.set({"selected": false});
20 * Select a specific model from the collection.
25 selectByID: function (id) {
27 var collector = this.get(id);
28 collector.set({"selected": true});
34 }(jQuery, Drupal, drupalSettings, Backbone));