Using $mouse is a nasty hack to do the same thing a decently developed mousein/mouseout/mouseover should do, which in my opinion should have been rectified a long time ago.