-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
BUG: commands not executed when mapped through options object #43
Comments
Ah yeah, I never hit this myself because I always use "pseudo-constants" for my event names, which don't work in object maps. So I always wire my commands programmatically using At first glance, I think it would be totally fine to move As for the docs, yeah they're still in bad shape. Feel free to sneak in any doc fixes into unrelated PRs. |
Hi there, it's me again :)
I have the following context class:
This unfortunately won't run, since a contexts
initialize
method is run (https://github.com/ModelN/backbone.geppetto/blob/master/backbone.geppetto.js#L190) before the parsing of thewiring
object (https://github.com/ModelN/backbone.geppetto/blob/master/backbone.geppetto.js#L198).It seems we could move the initialize method invocation to the last line, but I'm not entirely sure?
BTW there's quite a few mistakes in the documentation: e.g. 'commands' > 'option2: using the commands map' shows
but the
commands
object should be wrapped in awiring
object.Also in 'Setting up wiring in the context' the example is:
but the
wiring
object should be moved to outside theinitialize
function.Sorry if I am to blame, my memory's so terrible I can't remember whether this is stuff I wrote or not?
The text was updated successfully, but these errors were encountered: