summaryrefslogtreecommitdiffstats
path: root/js
diff options
context:
space:
mode:
authorBernhard Posselt <dev@bernhard-posselt.com>2013-12-20 23:01:24 +0100
committerBernhard Posselt <dev@bernhard-posselt.com>2013-12-20 23:01:24 +0100
commit0dbcbb6f8b0b89776c24d000840192571e39edbf (patch)
tree2f6fda2c455d3cc016ac4dfc0711ca004d8d5919 /js
parentb5553a83dbd593fa6c7b22e508c3b0fabe1ab9a3 (diff)
debug
Diffstat (limited to 'js')
-rw-r--r--js/app/services/persistence.coffee4
-rw-r--r--js/public/app.js8
2 files changed, 10 insertions, 2 deletions
diff --git a/js/app/services/persistence.coffee b/js/app/services/persistence.coffee
index 59b3083ff..1c7ed9351 100644
--- a/js/app/services/persistence.coffee
+++ b/js/app/services/persistence.coffee
@@ -60,7 +60,7 @@ $rootScope, $q) ->
###
ITEM CONTROLLER
###
- getItems: (type, id, offset, onSuccess=null) ->
+ getItems: (type, id, offset=0, onSuccess=null) ->
onSuccess or= ->
# show different loading signs
@@ -78,11 +78,13 @@ $rootScope, $q) ->
successCallbackWrapper = ->
+ console.log 'haha'
lastChange = @_lastFeedChange
# back up last change value in closure so we can compare it properly
do (lastChange, offset) =>
successCallbackWrapper = (data) =>
console.log data
+ console.log data.items
console.log offset
console.log lastChange
console.log @_lastFeedChange
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);