adamhaile / surplus

High performance JSX web views for S.js applications
639 stars 26 forks source link

Fix codegen for multiple fns on subcomponents. #63

Closed afranchuk closed 6 years ago

afranchuk commented 6 years ago

Closes #62.

Adds a new test case and the fix for the issue.

adamhaile commented 6 years ago

Nice catch! Thanks for the PR, especially for including a test along with it.

If this is a blocker for you, I can push an 0.5.3 to npm with the fix. Let me know.

afranchuk commented 6 years ago

Nah, it's not too much of a blocker. I wrote a simple function to group the fns I needed together. Thanks though!