From c0ffe8b967ea81d25784188bb9697a9b1fde4755 Mon Sep 17 00:00:00 2001 From: Bernhard Posselt Date: Fri, 20 Dec 2013 23:10:30 +0100 Subject: debug --- js/app/services/persistence.coffee | 7 +------ js/public/app.js | 9 ++------- 2 files changed, 3 insertions(+), 13 deletions(-) (limited to 'js') diff --git a/js/app/services/persistence.coffee b/js/app/services/persistence.coffee index 595fa795f..964826267 100644 --- a/js/app/services/persistence.coffee +++ b/js/app/services/persistence.coffee @@ -81,13 +81,8 @@ $rootScope, $q) -> successCallbackWrapper = -> lastChange = @_lastFeedChange # back up last change value in closure so we can compare it properly - do (lastChange, offset) => + do (lastChange, offset, loading) => successCallbackWrapper = (data) => - console.log data - console.log data.data.items - console.log offset - console.log lastChange - console.log @_lastFeedChange if data.data.items.length == 0 && lastChange == @_lastFeedChange && offset != 0 diff --git a/js/public/app.js b/js/public/app.js index ec311fc7f..7c9bbca63 100644 --- a/js/public/app.js +++ b/js/public/app.js @@ -2782,13 +2782,8 @@ License along with this library. If not, see . loading.increase(); successCallbackWrapper = function() {}; lastChange = this._lastFeedChange; - (function(lastChange, offset) { + (function(lastChange, offset, loading) { return successCallbackWrapper = function(data) { - console.log(data); - console.log(data.data.items); - console.log(offset); - console.log(lastChange); - console.log(_this._lastFeedChange); if (data.data.items.length === 0 && lastChange === _this._lastFeedChange && offset !== 0) { _this._preventUselessAutoPageRequest = true; console.log('lock'); @@ -2796,7 +2791,7 @@ License along with this library. If not, see . onSuccess(data); return loading.decrease(); }; - })(lastChange, offset); + })(lastChange, offset, loading); failureCallbackWrapper = function(data) { return loading.decrease(); }; -- cgit v1.2.3