Skip to content
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

Trigger Region close event with view that's being closed #834

Merged

Conversation

cobbweb
Copy link
Member

@cobbweb cobbweb commented Jan 2, 2014

Not sure what devs might want with a closed view, but at least this is consistent and does what the docs say. Fixes #821.

@samccone
Copy link
Member

samccone commented Jan 2, 2014

Hey @cobbweb just wondering the value of this, since you have to bind to the close event on the view instance what value do you see passing it also?

Maybe a use case would convince me :)

@cobbweb
Copy link
Member Author

cobbweb commented Jan 3, 2014

This is the 'close' event triggered on the Region, not the view. I don't know what use case it has, but it seems pretty trivial to add and it's already documented :P

@samccone
Copy link
Member

samccone commented Jan 3, 2014

:p , yeah sorry I read the code incorrectly

@cobbweb
Copy link
Member Author

cobbweb commented Jan 3, 2014

Yea I read the initial issue the same way hehe... the docs I'm talking about are here BTW

samccone added a commit that referenced this pull request Jan 8, 2014
…view

Trigger Region close event with view that's being closed
@samccone samccone merged commit 04021d2 into marionettejs:master Jan 8, 2014
@cobbweb cobbweb deleted the trigger-region-close-event-with-view branch January 8, 2014 23:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

onClose with undefined view
2 participants