Sha256: 04999a90f704b36c2488b392a93f4db5a5cd8f497825367cfb55d70336e81181
Contents?: true
Size: 554 Bytes
Versions: 212
Compression:
Stored size: 554 Bytes
Contents
HAL.Views.Response = Backbone.View.extend({ initialize: function(opts) { this.vent = opts.vent; this.headersView = new HAL.Views.ResponseHeaders({ vent: this.vent }); this.bodyView = new HAL.Views.ResponseBody({ vent: this.vent }); _.bindAll(this, 'render'); this.vent.bind('response', this.render); }, className: 'response', render: function(e) { this.$el.html(); this.headersView.render(e); this.bodyView.render(e); this.$el.append(this.headersView.el); this.$el.append(this.bodyView.el); } });
Version data entries
212 entries across 212 versions & 1 rubygems