709f17ea7dee25ae91d83abeae956415db07770b
[yaffs-website] / web / modules / contrib / devel / webprofiler / js / app / views / details.js
1 (function ($, Drupal, Backbone) {
2
3   "use strict";
4
5   Drupal.webprofiler.views.DetailsView = Backbone.View.extend({
6     el: '#details',
7
8     /**
9      *
10      * @returns {Drupal.webprofiler.views.DetailsView}
11      */
12     render: function () {
13       var template = _.template($("script#" + this.model.get('name')).html());
14
15       this.$el.html(template(this.model.toJSON()));
16       return this;
17     }
18   });
19
20 }(jQuery, Drupal, Backbone));