[#340] jshint cleanup of view.multiview.js

This commit is contained in:
John Glover
2013-04-15 17:36:22 +02:00
parent c77b35d9f2
commit 522e88fe41

View File

@@ -464,13 +464,14 @@ my.MultiView = Backbone.View.extend({
// This inverts the state serialization process in Multiview // This inverts the state serialization process in Multiview
my.MultiView.restore = function(state) { my.MultiView.restore = function(state) {
// hack-y - restoring a memory dataset does not mean much ... (but useful for testing!) // hack-y - restoring a memory dataset does not mean much ... (but useful for testing!)
var datasetInfo;
if (state.backend === 'memory') { if (state.backend === 'memory') {
var datasetInfo = { datasetInfo = {
backend: 'memory', backend: 'memory',
records: [{stub: 'this is a stub dataset because we do not restore memory datasets'}] records: [{stub: 'this is a stub dataset because we do not restore memory datasets'}]
}; };
} else { } else {
var datasetInfo = _.extend({ datasetInfo = _.extend({
url: state.url, url: state.url,
backend: state.backend backend: state.backend
}, },
@@ -483,7 +484,7 @@ my.MultiView.restore = function(state) {
state: state state: state
}); });
return explorer; return explorer;
} };
// ## Miscellaneous Utilities // ## Miscellaneous Utilities
var urlPathRegex = /^([^?]+)(\?.*)?/; var urlPathRegex = /^([^?]+)(\?.*)?/;