diff options
author | Bernhard Posselt <dev@bernhard-posselt.com> | 2013-12-20 23:01:24 +0100 |
---|---|---|
committer | Bernhard Posselt <dev@bernhard-posselt.com> | 2013-12-20 23:01:24 +0100 |
commit | 0dbcbb6f8b0b89776c24d000840192571e39edbf (patch) | |
tree | 2f6fda2c455d3cc016ac4dfc0711ca004d8d5919 /js/public | |
parent | b5553a83dbd593fa6c7b22e508c3b0fabe1ab9a3 (diff) |
debug
Diffstat (limited to 'js/public')
-rw-r--r-- | js/public/app.js | 8 |
1 files changed, 7 insertions, 1 deletions
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 <http://www.gnu.org/licenses/>. 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 <http://www.gnu.org/licenses/>. 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); |