From e8cdd191953e5026957de0af99438288dfc428c6 Mon Sep 17 00:00:00 2001 From: Bernhard Posselt Date: Fri, 20 Dec 2013 23:04:25 +0100 Subject: debug --- js/app/services/persistence.coffee | 3 ++- js/public/app.js | 6 +++--- 2 files changed, 5 insertions(+), 4 deletions(-) (limited to 'js') diff --git a/js/app/services/persistence.coffee b/js/app/services/persistence.coffee index a8ecb660b..595fa795f 100644 --- a/js/app/services/persistence.coffee +++ b/js/app/services/persistence.coffee @@ -70,6 +70,7 @@ $rootScope, $q) -> # autopage prevention @_lastFeedChange = new Date().getTime() @_preventUselessAutoPageRequest = false + console.log 'free' else loading = @_autoPageLoading @@ -78,7 +79,6 @@ $rootScope, $q) -> successCallbackWrapper = -> - console.log 'haha' lastChange = @_lastFeedChange # back up last change value in closure so we can compare it properly do (lastChange, offset) => @@ -92,6 +92,7 @@ $rootScope, $q) -> lastChange == @_lastFeedChange && offset != 0 @_preventUselessAutoPageRequest = true + console.log 'lock' onSuccess(data) loading.decrease() failureCallbackWrapper = (data) -> diff --git a/js/public/app.js b/js/public/app.js index 2533ea6c1..ec311fc7f 100644 --- a/js/public/app.js +++ b/js/public/app.js @@ -2775,13 +2775,12 @@ License along with this library. If not, see . loading = this._feedLoading; this._lastFeedChange = new Date().getTime(); this._preventUselessAutoPageRequest = false; + console.log('free'); } else { loading = this._autoPageLoading; } loading.increase(); - successCallbackWrapper = function() { - return console.log('haha'); - }; + successCallbackWrapper = function() {}; lastChange = this._lastFeedChange; (function(lastChange, offset) { return successCallbackWrapper = function(data) { @@ -2792,6 +2791,7 @@ License along with this library. If not, see . console.log(_this._lastFeedChange); if (data.data.items.length === 0 && lastChange === _this._lastFeedChange && offset !== 0) { _this._preventUselessAutoPageRequest = true; + console.log('lock'); } onSuccess(data); return loading.decrease(); -- cgit v1.2.3