From 3a8e0cb0a1caa11eb6e7985a6976f2bb58eef693 Mon Sep 17 00:00:00 2001 From: Alex Holachek Date: Fri, 4 Mar 2016 12:05:47 -0500 Subject: [PATCH] no longer loading query from previous session --- src/js/components/app_storage.js | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/js/components/app_storage.js b/src/js/components/app_storage.js index e0eb5d527..9132e26b8 100644 --- a/src/js/components/app_storage.js +++ b/src/js/components/app_storage.js @@ -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() {