Sha256: 56a600a813a531a0ff462b12d60cf962294e1144a16e0ee299c33380be2f9282
Contents?: true
Size: 685 Bytes
Versions: 129
Compression:
Stored size: 685 Bytes
Contents
HAL.Views.RequestHeaders = Backbone.View.extend({ initialize: function(opts) { var self = this; this.vent = opts.vent; _.bindAll(this, 'updateRequestHeaders'); this.vent.bind('app:loaded', function() { self.updateRequestHeaders(); }); }, className: 'request-headers', events: { 'blur textarea': 'updateRequestHeaders' }, updateRequestHeaders: function(e) { var inputText = this.$('textarea').val() || ''; headers = HAL.parseHeaders(inputText); HAL.client.updateDefaultHeaders(headers) }, render: function() { this.$el.html(this.template()); }, template: _.template($('#request-headers-template').html()) });
Version data entries
129 entries across 129 versions & 1 rubygems