Optional event emit instead of function call for action buttons #1378
|
@akz92 this looks like a good start but can you fill out the PR template so I know what has and hasn't been done. Also, only one file seems to have been changed even though you have 10 commits so your doc changes are missing. |
|
@macdonst ok. I opted to remove the doc changes because I wasn't sure about how to add the details about this. I'll fill out the PR template and then I'll change the docs. |
|
@akz92 yeah, add the docs back in. I can modify them if required. |
|
Added the docs back. @macdonst I tried to keep it simple since this is a secondary behavior, please let me know if you think we need to add more details to the docs. |
|
@akz92 would you be interested in making a PR on the v2.0.x branch where I use ES2015? |
|
Sure @macdonst, just give me a few days. |
1 check was pending
|
@akz92 thanks for the PR. I've merged it into master and I'll get it into a 1.9.2 release. |
|
No problem @macdonst. I didn't forget about the v2.0.x PR, I'll get to it
soon.
2016-12-14 13:13 GMT-02:00 Simon MacDonald <[email protected]>:
…
|
|
@akz92 I'm doing a rebase of your changes to the v2.0.x branch right now. So it may not be necessary. Hang tight. |
|
@akz92 okay, I merged your code into 2.0.0 and fixed my merge screw up. It is now officially part of the 2.0.0 branch. Thanks again for your awesomeness. Do you have a twitter account? |
|
That's great! Can't wait to use it from the npm package :) Yes:
https://twitter.com/aakz92
2016-12-14 14:11 GMT-02:00 Simon MacDonald <[email protected]>:
…
|
|
Is the Changelog updated? I see an entry of v1.9.2 (2016-07-09) https://github.com/phonegap/phonegap-plugin-push/blob/master/CHANGELOG.md but the date is (2016-07-09) which I believe is the date of v1.9.1 |
|
@naveedahmed1 You're correct, the date was not properly generated: e02ff67#commitcomment-20189903 |
Description
Add the option to emit events instead of executing functions on action buttons click.
Related Issue
#1192
Motivation and Context
It's easier and IMO better to work with events instead of functions in this kind of situation.
How Has This Been Tested?
I only tested the event emission.
Types of changes
Checklist: