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

Add more info to the tribute-replaced event detail #237

Merged

Conversation

andreynering
Copy link
Contributor

Hey there!

It's often useful having access on more information on this event. I specially need to know the trigger char here, since you can have multiple triggers enabled.

Also, I think it'd be nice to have access to the collection itself, too.

@mrsweaters
Copy link
Collaborator

Those two variables are poorly named within tribute and are ripe for a refactor. What if we renamed context to instance and info to context?

@andreynering
Copy link
Contributor Author

Hi @mrsweaters,

Can be. I'll update it in the coming days.

@andreynering andreynering force-pushed the add-more-info-to-the-tribute-replaced-event branch from a6e61b5 to c54155a Compare May 8, 2019 13:14
@andreynering
Copy link
Contributor Author

@mrsweaters Done!

I also moved some variable declarations to inside the if, since it's only used there.

@mrsweaters
Copy link
Collaborator

This looks good! 👍

@mrsweaters mrsweaters merged commit 2ed29ac into zurb:master May 8, 2019
@andreynering andreynering deleted the add-more-info-to-the-tribute-replaced-event branch May 9, 2019 18:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants