eventShim supports multiple handlers per element

I was using this eventShim in order to make IE8 work with multiple javascript files that register events. However, I had three javascript files that all registered the resize event, but only one of them would fire. As it turns out, IE8 doesn't seem to support having multiple handlers per event.

This is the code I wrote to work around this bug and it seems to work well.