diff options
| author | Anqi Xu | 2012-06-24 05:36:27 -0400 |
|---|---|---|
| committer | Anqi Xu | 2012-06-24 05:36:27 -0400 |
| commit | 285771476af58db4b2b0839059f11e9ab0dfa90b (patch) | |
| tree | 13c71ecef7a6bed9caa91cb03cfa2486f39c277b | |
| parent | 7f28bc955883e3847eae5ddaeac87445567660b3 (diff) | |
| download | LikeFeed-285771476af58db4b2b0839059f11e9ab0dfa90b.tar.bz2 | |
Added data manipulation
| -rw-r--r-- | Resources/friendship/core/DataManipulation.js | 8 | ||||
| -rw-r--r-- | Resources/friendship/ui/LikeList.js | 3 |
2 files changed, 10 insertions, 1 deletions
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; |
