Permalink
Browse files

Finishing touches and simplifications

  • Loading branch information...
1 parent dcb6f21 commit 8573210800df5fc82735543a1c37a218cd3995de @hlship committed Sep 14, 2009
Showing with 2 additions and 8 deletions.
  1. +2 −8 src/main/webapp/app/TwitterController.j
@@ -46,7 +46,7 @@
var scrollViewBounds = [[_scrollView contentView] bounds];
var itemPrototype = [[CPCollectionViewItem alloc] init];
- [itemPrototype setView:[[TwitView alloc] initWithFrame:CGRectMakeZero()]];
+ [itemPrototype setView:[[TwitView alloc] init]];
_timelineView = [[CPCollectionView alloc] initWithFrame:CGRectMake(0, 0,
CGRectGetWidth(scrollViewBounds) - 2, 0)];
@@ -89,14 +89,8 @@
{
var timeline = JSON.parse(data);
- [self updateTimeline:timeline];
-}
-
-- (void)updateTimeline:(CPArray) timeline
-{
[_timelineView setContent:timeline];
-}
-
+}
- (void)connection:(CPURLConnection)connection didFailWithError:(CPString)error
{

0 comments on commit 8573210

Please sign in to comment.