jsbin link: http://jsbin.com/axevid/2 <- open using Webkit browser (Chrome or Safari)
When regular button is disabled, all events are disabled too. I created a custom tag (part of the requirement of the project) for a custom button. But how can I make it so that it disables binded events when the button is disabled and get them back once enabled?
I'm using Javascript MVC. I think I saw a function, which disables events, but I forgot where it was.
EDIT: The code should be kind of a plug-in, which should work on all custom buttons. In other words, I don't want to include if statement in each binded event. Any ideas? Thanks.