From 0dbcbb6f8b0b89776c24d000840192571e39edbf Mon Sep 17 00:00:00 2001 From: Bernhard Posselt Date: Fri, 20 Dec 2013 23:01:24 +0100 Subject: debug --- js/public/app.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'js/public/app.js') diff --git a/js/public/app.js b/js/public/app.js index 26680dea4..85044751e 100644 --- a/js/public/app.js +++ b/js/public/app.js @@ -2764,6 +2764,9 @@ License along with this library. If not, see . Persistence.prototype.getItems = function(type, id, offset, onSuccess) { var failureCallbackWrapper, lastChange, loading, params, successCallbackWrapper, _this = this; + if (offset == null) { + offset = 0; + } if (onSuccess == null) { onSuccess = null; } @@ -2776,11 +2779,14 @@ License along with this library. If not, see . loading = this._autoPageLoading; } loading.increase(); - successCallbackWrapper = function() {}; + successCallbackWrapper = function() { + return console.log('haha'); + }; lastChange = this._lastFeedChange; (function(lastChange, offset) { return successCallbackWrapper = function(data) { console.log(data); + console.log(data.items); console.log(offset); console.log(lastChange); console.log(_this._lastFeedChange); -- cgit v1.2.3