Sha256: 27b869a3361f38e3d67469c6742b7c413b15ff1d6b835efd369af5870570c548

Contents?: true

Size: 718 Bytes

Versions: 26

Compression:

Stored size: 718 Bytes

Contents

HAL.Views.Browser = Backbone.View.extend({
  initialize: function(opts) {
    var self = this;
    this.vent = opts.vent;
    this.entryPoint = opts.entryPoint;
    this.explorerView = new HAL.Views.Explorer({ vent: this.vent });
    this.inspectorView = new HAL.Views.Inspector({ vent: this.vent });
  },

  className: 'row',

  render: function() {
    this.$el.empty();

    this.inspectorView.render();
    this.explorerView.render();

    this.$el.html(this.explorerView.el);
    this.$el.append(this.inspectorView.el);

    var entryPoint = this.entryPoint;

    $("#entryPointLink").click(function(event) {
      event.preventDefault();
      window.location.hash = entryPoint;
    });
    return this;
  }
});

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
pact_broker-2.112.0 vendor/hal-browser/js/hal/views/browser.js
pact_broker-2.111.0 vendor/hal-browser/js/hal/views/browser.js
pact_broker-2.109.1 vendor/hal-browser/js/hal/views/browser.js
pact_broker-2.109.0 vendor/hal-browser/js/hal/views/browser.js
pact_broker-2.108.0 vendor/hal-browser/js/hal/views/browser.js
pact_broker-2.107.1 vendor/hal-browser/js/hal/views/browser.js
pact_broker-2.107.0 vendor/hal-browser/js/hal/views/browser.js
pact_broker-2.107.0.beta.1 vendor/hal-browser/js/hal/views/browser.js
pact_broker-2.106.0 vendor/hal-browser/js/hal/views/browser.js
pact_broker-2.105.0 vendor/hal-browser/js/hal/views/browser.js
pact_broker-2.104.0 vendor/hal-browser/js/hal/views/browser.js
pact_broker-2.103.0 vendor/hal-browser/js/hal/views/browser.js
pact_broker-2.102.2 vendor/hal-browser/js/hal/views/browser.js
pact_broker-2.102.1 vendor/hal-browser/js/hal/views/browser.js
pact_broker-2.102.0 vendor/hal-browser/js/hal/views/browser.js
pact_broker-2.101.0 vendor/hal-browser/js/hal/views/browser.js
pact_broker-2.100.0 vendor/hal-browser/js/hal/views/browser.js
pact_broker-2.99.0 vendor/hal-browser/js/hal/views/browser.js
pact_broker-2.98.0 vendor/hal-browser/js/hal/views/browser.js
pact_broker-2.97.0 vendor/hal-browser/js/hal/views/browser.js