Adds faye initialization options. Fixes #2#5
Adds faye initialization options. Fixes #2#5blackxored wants to merge 4 commits intomonterail:masterfrom
Conversation
|
Thanks, but isn't the https://github.com/monterail/angular-faye#configure-faye-client enough? |
|
I'm not sure what part of that syntax won't work, the third parameter is optional. The callback invocation (yield client) should also work as well. |
|
I mean: $faye = (url, fun, opts = {}) -> ...
$faye("some url", { my: opt })
# inside:
url == "some url"
fun == { my: opt }
opts == {} |
|
Actually no, iirc correctly you're using "?()" right, existential operator, that should parameter checking so if fun is not a function it will work correctly. |
|
But if you pass options as second parameter then variable |
Allow passing initialization options to faye constructor invocation.