[refactor,util][s]: move query string parsing and manipulation utilities into util.js.

This commit is contained in:
Rufus Pollock
2012-04-26 22:06:11 +01:00
parent c358a5bd43
commit 6d94c89b7c
5 changed files with 84 additions and 82 deletions

View File

@@ -21,7 +21,7 @@ var ExplorerApp = Backbone.View.extend({
this.router.route(/explorer/, 'explorer', this.viewExplorer);
Backbone.history.start();
var state = recline.View.parseQueryString(window.location.search);
var state = recline.Util.parseQueryString(window.location.search);
if (state) {
_.each(state, function(value, key) {
try {
@@ -112,7 +112,7 @@ var ExplorerApp = Backbone.View.extend({
},
makePermaLink: function(state) {
var qs = recline.View.composeQueryString(state.toJSON());
var qs = recline.Util.composeQueryString(state.toJSON());
return window.location.origin + window.location.pathname + qs;
},