-
-
Notifications
You must be signed in to change notification settings - Fork 114
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
Add onDestroy callback method for flash object destroy #211
Add onDestroy callback method for flash object destroy #211
Conversation
e581ab0
to
41ee7df
Compare
☔ The latest upstream changes (presumably f5002eb) made this pull request unmergeable. Please resolve the merge conflicts. |
Ran into a scenario where I need this functionality - @scanieso This looks a couple months old, would you by any chance have time to fix the merge conflicts so that the collaborators can merge it? If not, I can clean it up for merge. |
712118d
to
ce0c46e
Compare
ce0c46e
to
4d3671c
Compare
Thanks for the ping @patrickng . Updated and ready for review. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks great! Just 1 small comment then 👍
@@ -144,6 +144,12 @@ Ember.get(this, 'flashMessages').success('This is amazing', { | |||
|
|||
By default, flash messages will be destroyed on click. Disabling this can be useful if the message supports user interaction. | |||
|
|||
- `onDestroy: function` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would you mind also adding an example of this on line 90?
This PR adds a callback function that can be passed in and called when a flash is destroyed.
Addresses: #212