Button disable not working

Button disable not working

Setting the button widget to disabled only sets the 'disabled' attribute on the element to true.  This works fine with actual button and input elements but doesn't do anything for anchor elements that you want to use as buttons.  I was thinking that it could remove all events and store them for when the button is re-enabled but this doesn't account for new event handlers attached after being disabled.  One work around might be to inject an element into the anchor that covers the entire anchor and prevents actions from bubbling.  Another solution might be to remove the actual button and replace it with a facade.  I'm sure there are other solutions too.