diff options
author | Bernhard Posselt <dev@bernhard-posselt.com> | 2013-12-20 23:04:25 +0100 |
---|---|---|
committer | Bernhard Posselt <dev@bernhard-posselt.com> | 2013-12-20 23:04:25 +0100 |
commit | e8cdd191953e5026957de0af99438288dfc428c6 (patch) | |
tree | f746fc37ab6caad4e23f8dff998f7f48bbcf6963 /js | |
parent | 13f9849a68bf9d58d30d6dc876d854fbd2df4586 (diff) |
debug
Diffstat (limited to 'js')
-rw-r--r-- | js/app/services/persistence.coffee | 3 | ||||
-rw-r--r-- | js/public/app.js | 6 |
2 files changed, 5 insertions, 4 deletions
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 <http://www.gnu.org/licenses/>. 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 <http://www.gnu.org/licenses/>. 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(); |