Skip to content
This repository has been archived by the owner on Jun 13, 2022. It is now read-only.

Allow custom function as callback #85

Merged
merged 5 commits into from
Nov 3, 2016
Merged

Allow custom function as callback #85

merged 5 commits into from
Nov 3, 2016

Conversation

UziTech
Copy link
Collaborator

@UziTech UziTech commented Oct 10, 2016

In order to allow a function as an argument I had to add the .js and .coffee extensions since a function is not a valid type for JSON(5) or CSON

The alternative would be to use loophole to eval the callback property on the function type if button.callback were a string but I decided against that.

fixes #84

@cakecatz
Copy link
Owner

@UziTech I like export array instead of function.
How do you think?

@UziTech
Copy link
Collaborator Author

UziTech commented Oct 31, 2016

That sounds like a good idea. I updated the pull request

@cakecatz cakecatz merged commit f293927 into cakecatz:master Nov 3, 2016
@UziTech UziTech deleted the function-type branch September 13, 2020 05:00
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add support for custom function callback
2 participants