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

Use jQuery Widget Factory #17

Closed
martindsouza opened this issue Mar 15, 2016 · 2 comments
Closed

Use jQuery Widget Factory #17

martindsouza opened this issue Mar 15, 2016 · 2 comments
Assignees
Milestone

Comments

@martindsouza
Copy link
Contributor

@martindsouza martindsouza commented Mar 15, 2016

Instead of having functions and global variables that are unique to each instance of this plugin it may be better to have one JS package of code to handle everything. Thankfully there's a great framework to do this call the jQuery Widget Factory It's what all the jQuery UI widgets are built on.

If you've never used it before it can be a bit intimidating. This site should help get you started.

@jeffreykemp
Copy link
Owner

@jeffreykemp jeffreykemp commented Mar 15, 2016

I do intend to look into using the widget factory, looks doable. In the meantime I've reduced the footprint a great deal by refactoring almost all the javascript out to a single js file loaded once per page.

Loading

@jeffreykemp
Copy link
Owner

@jeffreykemp jeffreykemp commented Jul 17, 2019

This has been done in v1.0. The plugin now supports a range of API calls as well.

Loading

@jeffreykemp jeffreykemp added this to the 1.0 milestone Jul 17, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants