Skip to content

Commit

Permalink
feat: remove app.template
Browse files Browse the repository at this point in the history
  • Loading branch information
barisusakli committed Sep 7, 2020
1 parent 630bac2 commit 3cd3b7a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions public/src/ajaxify.js
Expand Up @@ -76,7 +76,6 @@ ajaxify = window.ajaxify || {};
}

retry = true;
app.template = data.template.name;

renderTemplate(url, data.templateToRender || data.template.name, data, callback);
});
Expand All @@ -88,7 +87,7 @@ ajaxify = window.ajaxify || {};
ajaxify.coldLoad = function () {
var url = ajaxify.start(window.location.pathname.slice(1) + window.location.search + window.location.hash);
ajaxify.updateHistory(url, true);
ajaxify.end(url, app.template);
ajaxify.end(url, ajaxify.data.template.name);
$(window).trigger('action:ajaxify.coldLoad');
};

Expand Down

0 comments on commit 3cd3b7a

Please sign in to comment.