Skip to content

Commit

Permalink
Merge pull request #845 from aholachek/back-button
Browse files Browse the repository at this point in the history
no longer loading query from previous session
  • Loading branch information
aholachek committed Mar 7, 2016
2 parents 16cc357 + 3a8e0cb commit a775c4f
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/js/components/app_storage.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,17 +20,12 @@ define([
var AppStorage = Backbone.Model.extend({

activate: function(beehive) {
var that = this;
this.setBeeHive(beehive);
_.bindAll(this, "onPaperSelection", "onBulkPaperSelection");
var pubsub = this.getPubSub();
pubsub.subscribe(pubsub.PAPER_SELECTION, this.onPaperSelection);
pubsub.subscribe(pubsub.BULK_PAPER_SELECTION, this.onBulkPaperSelection);
//see if we can load an api query from app storage
if (this.getBeeHive().getService("PersistentStorage")){
var stashedQuery = this.getBeeHive().getService("PersistentStorage").get("currentQuery");
this.setCurrentQuery(new ApiQuery(stashedQuery));
}

},

initialize: function() {
Expand Down

0 comments on commit a775c4f

Please sign in to comment.