From e54e5a688f90e92bb0540c791682145153d44783 Mon Sep 17 00:00:00 2001 From: Anqi Xu Date: Sun, 24 Jun 2012 00:46:42 -0400 Subject: Minor code refactoring --- Resources/friendship/ui/LikeList.js | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) (limited to 'Resources/friendship/ui/LikeList.js') diff --git a/Resources/friendship/ui/LikeList.js b/Resources/friendship/ui/LikeList.js index ce01096..b5a5e6b 100644 --- a/Resources/friendship/ui/LikeList.js +++ b/Resources/friendship/ui/LikeList.js @@ -48,19 +48,10 @@ fs.ui.createLikeList = function() { var ll_view = Ti.UI.createTableView(); - /* - ll_view.addEventListener('click', function(e) { - Ti.UI.currentTabGroup.activeTab.open(fs.ui.createWebViewWin({ - title: e.title, - url: e.url - })); - }); - */ - Ti.API.addEventListener( "processPosts", function( list ) { - //Ti.UI.createAlertDialog( {title:"Items: " + list.list.length} ).show(); - for ( key in list.list ) { - ll_view.appendRow( create_row( list.list[key] ) ); + Ti.API.addEventListener("processPosts", function(d) { + for ( key in d.data ) { + ll_view.appendRow( create_row( d.data[key] ) ); } }); -- cgit v1.2.3