Permalink
Browse files

Properly initialize FBDialog and Hackbook sample app data

Summary:
Related to pull requests
facebook#405
facebook#407

Test Plan:
1/ Tested Hackbook iOS app with iPhone 4 device with iOS 5, ran through various
screens and tested dialog.
2/ Tested Hackbook iOS app with iPad 2 device with iOS 4.3, ran through various
screens and tested dialog.

Reviewers: yariv, brent

Reviewed By: yariv

CC: lshepard, yariv

Differential Revision: 355088

Revert Plan: OK

Task ID: 786690
  • Loading branch information...
1 parent 82d95f5 commit 32423dcf2789c8693aa9d3197137344f150abdd2 Christine Abernathy committed Nov 3, 2011
Showing with 3 additions and 2 deletions.
  1. +2 −1 sample/Hackbook/Hackbook/DataSet.m
  2. +1 −1 src/FBDialog.m
@@ -26,7 +26,8 @@ @implementation DataSet
methods each menu calls are defined here.
*/
- (id) init {
- if ((self == [super init])) {
+ self = [super init];
+ if (self) {
_apiConfigData = [[NSMutableArray alloc] initWithCapacity:1];
View
@@ -287,7 +287,7 @@ - (void)cancel {
// NSObject
- (id)init {
- if (self == [super initWithFrame:CGRectZero]) {
+ if ((self = [super initWithFrame:CGRectZero])) {
_delegate = nil;
_loadingURL = nil;
_showingKeyboard = NO;

0 comments on commit 32423dc

Please sign in to comment.