Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
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...
commit 32423dcf2789c8693aa9d3197137344f150abdd2 1 parent 82d95f5
Christine Abernathy authored
Showing with 3 additions and 2 deletions.
  1. +2 −1  sample/Hackbook/Hackbook/DataSet.m
  2. +1 −1  src/FBDialog.m
View
3  sample/Hackbook/Hackbook/DataSet.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
2  src/FBDialog.m
@@ -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;
Please sign in to comment.
Something went wrong with that request. Please try again.