Please sign in to comment.
1) Ditch caching in `isEventSupported`, to make example (and mechanis…
…m of this inference) easier to understand. 2) Change `isEventSupported` to use generic element (DIV), when supplied object doesn't implement `Node` interface (and so has no `setAttribute`). Something like `isEventSupported('hashchange', window)` now internally tries `<DIV>.setAttribute('hashchange', '')`, since `window` is one of `setAttribute`-less objects. This change fixes some of the false positives from previous verion. 3) Add few more HTML5, as well as proprietary "pageshow" and "pagehide" events to test page.
- Loading branch information...