Cleanup for `/wp-admin/js/accordion.js`
|Reported by:||carldanley||Owned by:|
I've attached a cleanup iteration of the existing accordion file.
- Cleaner function names
- Moved the structure of the file to a revealing module pattern
- Added JSDocs
- prefixed jQuery objects with proper $ sign
- The current iteration has no publicly exposed API methods but I was thinking it might be nice to offer support for toggleAccordion etc. Need thoughts on this.
Could use a second pair of eyes to test this functionality and make sure we have no errors here.
Change History (2)
Note: See TracTickets for help on using tickets.