From 6e50016a115807977eb4ef4616ca6a07215c5639 Mon Sep 17 00:00:00 2001 From: Charles Date: Mon, 16 Jun 2014 10:28:57 +0700 Subject: [PATCH] Cleanup the vars --- public/src/app.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/public/src/app.js b/public/src/app.js index 992182b261..cbc7a46db0 100644 --- a/public/src/app.js +++ b/public/src/app.js @@ -510,14 +510,12 @@ var socket, app.load = function() { $('document').ready(function () { - var url = window.location.pathname.slice(1).replace(/\/$/, ""), + var url = ajaxify.removeRelativePath(window.location.pathname.slice(1).replace(/\/$/, "")), + tpl_url = ajaxify.getTemplateMapping(url), search = window.location.search, hash = window.location.hash, $window = $(window); - url = ajaxify.removeRelativePath(url); - tpl_url = ajaxify.getTemplateMapping(url); - ajaxify.widgets.render(tpl_url, url); $window.trigger('action:ajaxify.start', {