Commit 8b06cd32 authored by Gerben's avatar Gerben Committed by Aron Carroll

Make bridge.onConnect chainable

parent c5f11c91
......@@ -98,7 +98,7 @@ class CrossFrameBridge
# Add a function to be called upon a new connection
onConnect: (callback) ->
@onConnectListeners.push(callback)
this
# Construct a channel to another frame
_buildChannel: (options) ->
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment