From 0816928949e7bfcc74c7904665844bacc070832f Mon Sep 17 00:00:00 2001 From: psychobunny Date: Mon, 2 Jun 2014 15:00:43 -0400 Subject: [PATCH] unset preloader cache after loading url --- public/src/ajaxify.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/public/src/ajaxify.js b/public/src/ajaxify.js index c429f14633..04198634ff 100644 --- a/public/src/ajaxify.js +++ b/public/src/ajaxify.js @@ -191,7 +191,9 @@ var ajaxify = ajaxify || {}; $(window).trigger('action:ajaxify.loadingData', {url: url}); if (ajaxify.preloader && ajaxify.preloader[url]) { - return callback(null, ajaxify.preloader[url].data); + callback(null, ajaxify.preloader[url].data); + ajaxify.preloader[url] = null; + return; } var location = document.location || window.location,