Sha256: d90e6bf8b5db0b07e3b8f9d75d8265fd52ce7ec4cd4f48d65013f32f998fd98b
Contents?: true
Size: 858 Bytes
Versions: 30
Compression:
Stored size: 858 Bytes
Contents
HAL.Views.Inspector = Backbone.View.extend({ initialize: function(opts) { this.vent = opts.vent; _.bindAll(this, 'renderDocumentation'); _.bindAll(this, 'renderResponse'); this.vent.bind('show-docs', this.renderDocumentation); this.vent.bind('response', this.renderResponse); }, className: 'col-6', render: function() { this.$el.html(this.template()); }, renderResponse: function(response) { var responseView = new HAL.Views.Response({ vent: this.vent }); this.render(); responseView.render(response); this.$el.append(responseView.el); }, renderDocumentation: function(e) { var docView = new HAL.Views.Documenation({ vent: this.vent }); this.render(); docView.render(e.url); this.$el.append(docView.el); }, template: function() { return '<h1>Inspector</h1>'; } });
Version data entries
30 entries across 30 versions & 1 rubygems