diff options
Diffstat (limited to 'Resources/friendship/ui/LikeList.js')
| -rw-r--r-- | Resources/friendship/ui/LikeList.js | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Resources/friendship/ui/LikeList.js b/Resources/friendship/ui/LikeList.js index 7ed3fe2..0894d07 100644 --- a/Resources/friendship/ui/LikeList.js +++ b/Resources/friendship/ui/LikeList.js @@ -30,6 +30,13 @@ return row; } + fs.ui.addItems = function( list ) + { + for ( key in list.list ) { + Ti.API.info( list.list[key] ); + } + } + fs.ui.createLikeList = function() { var ll_view = Ti.UI.createTableView(); @@ -43,6 +50,8 @@ ll_view.appendRow( create_row( 'OMG, I like totally like Skrillex.') ); ll_view.appendRow( create_row( 'Seriously, this is amazing. You totally need to party.') ); + Ti.API.addEventListener( "processPosts", fs.ui.addItems ); + return ll_view; }; })(); |
