Skip to content

Commit

Permalink
Properly initialize FBDialog and Hackbook sample app data
Browse files Browse the repository at this point in the history
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
Christine Abernathy authored and Christine Abernathy committed Nov 3, 2011
1 parent 82d95f5 commit 32423dc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion sample/Hackbook/Hackbook/DataSet.m
Expand Up @@ -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];

Expand Down
2 changes: 1 addition & 1 deletion src/FBDialog.m
Expand Up @@ -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;
Expand Down

0 comments on commit 32423dc

Please sign in to comment.