Summary
Refactors event bindings in "jquery.selectareas.js" without changing the plugin's behavior.
Changes
- Replaced deprecated ".bind()" calls with ".on()".
- Replaced ".mousedown()" shorthand with ".on("mousedown", ...)".
- Replaced the global selector used to hide resize handlers with the existing "$resizeHandlers" collection to avoid unnecessary DOM lookups.
- Improved code consistency and readability.
Benefits
- Uses the modern jQuery event API.
- Avoids unnecessary global DOM queries.
- Makes the code easier to maintain while preserving existing functionality.
No functional changes were introduced.
Summary
Refactors event bindings in "jquery.selectareas.js" without changing the plugin's behavior.
Changes
Benefits
No functional changes were introduced.