Skip to content

Commit 388ac2b

Browse files
committed
Adds name property to EventBus
1 parent 9827bc7 commit 388ac2b

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

caravel/EventBus.swift

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,13 @@ public class EventBus: NSObject, UIWebViewDelegate {
4141
UIWebViewDelegateMediator.subscribe(self.webView!, subscriber: self)
4242
}
4343

44+
/**
45+
* Current name
46+
*/
47+
public var name: String {
48+
return self.dispatcher!.name
49+
}
50+
4451
internal func getReference() -> AnyObject? {
4552
return self.reference
4653
}
@@ -208,7 +215,6 @@ public class EventBus: NSObject, UIWebViewDelegate {
208215

209216
/**
210217
* Unregisters subscriber from bus
211-
* @param subscriber Should be the same one than provided when registering.
212218
*/
213219
public func unregister() {
214220
self.dispatcher!.deleteBus(self)

0 commit comments

Comments
 (0)