Permalink
Browse files

[NEW] +[JSTListener listenWithRootObject:]

  • Loading branch information...
1 parent 4c54527 commit 2949a10e4a44d0462a3e76ba898d8ba01ce39527 @rentzsch rentzsch committed with Sep 25, 2009
Showing with 6 additions and 1 deletion.
  1. +1 −1 src/JSTListener.h
  2. +5 −0 src/JSTListener.m
View
@@ -21,7 +21,7 @@
@property (assign) id rootObject;
-
+ (void) listen;
++ (void) listenWithRootObject:(id)rootObject;
@end
View
@@ -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];

0 comments on commit 2949a10

Please sign in to comment.