Skip to content

Commit

Permalink
[NEW] +[JSTListener listenWithRootObject:]
Browse files Browse the repository at this point in the history
  • Loading branch information
rentzsch authored and ccgus committed Jul 2, 2010
1 parent 4c54527 commit 2949a10
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/JSTListener.h
Expand Up @@ -21,7 +21,7 @@

@property (assign) id rootObject;


+ (void) listen;
+ (void) listenWithRootObject:(id)rootObject;

@end
5 changes: 5 additions & 0 deletions src/JSTListener.m
Expand Up @@ -30,6 +30,11 @@ + (void) listen {
[[self sharedListener] setupListener];
}

+ (void) listenWithRootObject:(id)rootObject; {
((JSTListener*)[self sharedListener]).rootObject = rootObject;
[self listen];
}


- (void) setupListener {
NSString *myBundleId = [[NSBundle mainBundle] bundleIdentifier];
Expand Down

0 comments on commit 2949a10

Please sign in to comment.