jeffreykemp / jk64-plugin-reportmap

Report Google Map APEX Plugin
https://jeffreykemp.github.io/jk64-plugin-reportmap/
MIT License
42 stars 16 forks source link

Use jQuery Widget Factory #17

Closed martindsouza closed 5 years ago

martindsouza commented 8 years ago

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 commented 8 years ago

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.

jeffreykemp commented 5 years ago

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