From 522e88fe415eb448db4fa3c442ad8f7d40b15e71 Mon Sep 17 00:00:00 2001 From: John Glover Date: Mon, 15 Apr 2013 17:36:22 +0200 Subject: [PATCH] [#340] jshint cleanup of view.multiview.js --- src/view.multiview.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/view.multiview.js b/src/view.multiview.js index c69612b6..d0640ff7 100644 --- a/src/view.multiview.js +++ b/src/view.multiview.js @@ -464,13 +464,14 @@ my.MultiView = Backbone.View.extend({ // This inverts the state serialization process in Multiview my.MultiView.restore = function(state) { // hack-y - restoring a memory dataset does not mean much ... (but useful for testing!) + var datasetInfo; if (state.backend === 'memory') { - var datasetInfo = { + datasetInfo = { backend: 'memory', records: [{stub: 'this is a stub dataset because we do not restore memory datasets'}] }; } else { - var datasetInfo = _.extend({ + datasetInfo = _.extend({ url: state.url, backend: state.backend }, @@ -483,7 +484,7 @@ my.MultiView.restore = function(state) { state: state }); return explorer; -} +}; // ## Miscellaneous Utilities var urlPathRegex = /^([^?]+)(\?.*)?/;