remove dead code, the object is always nonempty

This commit is contained in:
Martin Cech
2017-12-19 16:16:15 -05:00
parent 77d77a935f
commit 49f0cf86f0
+2 -4
View File
@@ -17,10 +17,8 @@ var Router = Backbone.Router.extend({
data.__identifer = Math.random()
.toString(36)
.substr(2);
if (!$.isEmptyObject(data)) {
url += url.indexOf("?") == -1 ? "?" : "&";
url += $.param(data, true);
}
url += url.indexOf("?") == -1 ? "?" : "&";
url += $.param(data, true);
Galaxy.params = data;
this.navigate(url, { trigger: true });
},