diff options
author | Bernhard Posselt <dev@bernhard-posselt.com> | 2013-12-20 23:10:30 +0100 |
---|---|---|
committer | Bernhard Posselt <dev@bernhard-posselt.com> | 2013-12-20 23:10:30 +0100 |
commit | c0ffe8b967ea81d25784188bb9697a9b1fde4755 (patch) | |
tree | f60eff54a2839631396bd05f608d0f75b0c4e0d7 /js | |
parent | e8cdd191953e5026957de0af99438288dfc428c6 (diff) |
debug
Diffstat (limited to 'js')
-rw-r--r-- | js/app/services/persistence.coffee | 7 | ||||
-rw-r--r-- | js/public/app.js | 9 |
2 files changed, 3 insertions, 13 deletions
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 <http://www.gnu.org/licenses/>. 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 <http://www.gnu.org/licenses/>. onSuccess(data); return loading.decrease(); }; - })(lastChange, offset); + })(lastChange, offset, loading); failureCallbackWrapper = function(data) { return loading.decrease(); }; |