accept element for content, add 'hiding' event

just a couple of things I needed. The docs suggested that elements could be accepted as content. This pr allows this. I've also added a 'hiding' event that occurs before the element is actually removed. Useful when using 'fade', for example, which only fires the 'hide' event after 300ms.

oh, and i deleted an unused 'self' var.