diff --git a/public/src/ajaxify.js b/public/src/ajaxify.js index fad2c56c53..d95f976df8 100644 --- a/public/src/ajaxify.js +++ b/public/src/ajaxify.js @@ -117,7 +117,7 @@ var ajaxify = ajaxify || {}; app.refreshTitle(url); }, animationDuration * 1000 - ((new Date()).getTime() - startTime)) - + }); }); }); @@ -199,7 +199,7 @@ var ajaxify = ajaxify || {}; if (ajaxify.preloader && ajaxify.preloader[url]) { callback(null, ajaxify.preloader[url].data); ajaxify.preloader = {}; - + return; } @@ -311,7 +311,7 @@ var ajaxify = ajaxify || {}; // Internal link var url = this.href.replace(rootUrl + '/', ''), currentTime = (new Date()).getTime(); - +console.log(Date.now(), ajaxify.preloader[url]); if (!ajaxify.preloader[url] || currentTime - ajaxify.preloader[url].lastFetched > PRELOADER_RATE_LIMIT) { ajaxify.preloader[url] = null; ajaxify.loadData(url, function(err, data) { diff --git a/src/plugins.js b/src/plugins.js index c285e8c0c4..053f1230a7 100644 --- a/src/plugins.js +++ b/src/plugins.js @@ -352,7 +352,7 @@ var fs = require('fs'), var hookList = Plugins.loadedHooks[hook]; - if (hookList && Array.isArray(hookList)) { + if (Array.isArray(hookList)) { // if (global.env === 'development') winston.info('[plugins] Firing hook: \'' + hook + '\''); var hookType = hook.split(':')[0]; switch (hookType) {