support: IE8- doesn't have window events
dom/event: simplify wrapping code