Skip to content

Commit

Permalink
different singleton pattern
Browse files Browse the repository at this point in the history
  • Loading branch information
treacher committed Mar 17, 2015
1 parent aa68597 commit 36b15e0
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions Assets/Plugins/iOS/FrispSocial/FrispSocial.mm
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,9 @@

@implementation FrispSocial

static FrispSocial * _instance;
static FrispSocial * _instance = [[FrispSocial alloc] init];

+ (id) instance {

if (_instance == nil) {
_instance = [[FrispSocial alloc] init];
}

return _instance;
}

Expand Down

0 comments on commit 36b15e0

Please sign in to comment.