From 285771476af58db4b2b0839059f11e9ab0dfa90b Mon Sep 17 00:00:00 2001 From: Anqi Xu Date: Sun, 24 Jun 2012 05:36:27 -0400 Subject: Added data manipulation --- Resources/friendship/core/DataManipulation.js | 8 ++++++++ Resources/friendship/ui/LikeList.js | 3 ++- 2 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 Resources/friendship/core/DataManipulation.js diff --git a/Resources/friendship/core/DataManipulation.js b/Resources/friendship/core/DataManipulation.js new file mode 100644 index 0000000..e582ed9 --- /dev/null +++ b/Resources/friendship/core/DataManipulation.js @@ -0,0 +1,8 @@ +(function() { + fs.data = {}; + fs.data.friends = Array(); + fs.data.likeIDs = Array(); + fs.data.reverseChronoLikedIDs = Array(); + fs.data.numLikesFetched = 0; + fs.data.NUM_LIKES_PER_FETCH = 20; +})(); \ No newline at end of file diff --git a/Resources/friendship/ui/LikeList.js b/Resources/friendship/ui/LikeList.js index dfc01c1..187848c 100644 --- a/Resources/friendship/ui/LikeList.js +++ b/Resources/friendship/ui/LikeList.js @@ -271,7 +271,8 @@ ll_view.addEventListener("scrollEnd", function(e) { Ti.API.info("scroll ended"); - Ti.API.info(e.contentOffset); + Ti.API.info(e.contentOffset.y); + Ti.API.info(ll_view.height); }); return ll_view; -- cgit v1.2.3