Link to JSBin code snippet: http://jsbin.com/axevid/2 <- best viewed in Webkit browser (Chrome or Safari)
I encountered an issue where regular buttons disable all events when disabled. To address this, I created a custom tag as part of my project requirements for a unique button. How can I ensure that bound events are also disabled when the button is disabled and reactivated when it's enabled?
Using Javascript MVC, I vaguely remember seeing a function that disables events, but I can't recall its exact location.
EDIT: The code should function like a plug-in, capable of working with all custom buttons without requiring individual if statements for each event binding. Any suggestions on how to achieve this? Thank you.