Calling Backbone.history.start later

This commit is contained in:
Ayush Gupta
2012-07-17 22:24:06 -07:00
parent 16a1e1bda8
commit 5a52410e62
3 changed files with 6 additions and 7 deletions

8
dist/swagger-ui.js vendored
View File

@@ -808,9 +808,6 @@ templates['resource'] = template(function (Handlebars,depth0,helpers,partials,da
if (options == null) {
options = {};
}
Backbone.history.start({
pushState: true
});
if (options.dom_id != null) {
this.dom_id = options.dom_id;
delete options.dom_id;
@@ -848,7 +845,10 @@ templates['resource'] = template(function (Handlebars,depth0,helpers,partials,da
_ref.clear();
}
this.headerView.update(this.options.discoveryUrl, this.options.apiKey);
return this.api = new SwaggerApi(this.options);
this.api = new SwaggerApi(this.options);
return Backbone.history.start({
pushState: true
});
};
SwaggerUi.prototype.render = function() {