I wonder if jQuery should add events to addClass and removeClass methods so we could add event handlers in our applications. I saw this discussion
http://stackoverflow.com/questions/1950038/jquery-fire-event-if-css-class-changed where it is suggested to overwrite original addClass method, it seems this behaviour shoud be part of JQuery.