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

Split code into multiple modules #14

Open
joefiorini opened this issue Aug 7, 2013 · 1 comment
Open

Split code into multiple modules #14

joefiorini opened this issue Aug 7, 2013 · 1 comment

Comments

@joefiorini
Copy link

Currently the entire plugin is in one large file, but it would be easier to maintain and for potential contributors to wrap their heads around if it was split into many small modules. I'm currently thinking something like:

bacon.jquery.coffee Re-export public API on `Bacon.$` namespace & monkey-patches Bacon.Observable with ajax
elements/* One module for each element that has a value function (eg. check-box.js exports checkBoxValue)
ajax.coffee Exports ajax functions
events.coffee Exports jQuery event wrappers
@raimohanska
Copy link
Contributor

Makes sense. Not sure if elements need to be split into separate files though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants