palmerj3/konami-js — pull request #3 by st-boost (2012-06-13 21:35:06+00:00)
Title: fix "onkeydown" listener; remove "attachEvent"; inline functions; auto-initialize

- window.onkeydown = listener; clobbers previous event listeners; preserve them in a closure.
- inline single-use functions.
- as there's no reason to allow for multiple initializations, and we can assume konami.js will not be loaded if it won't be used, initialization has been made automatic.
- remove fallback to `attachEvent`, as the old version threw an error when this was used, and it's simpler to only have one catch-all fallback
- removed "listenerTarget" and inlined "window" - what was the point of "listenerTarget" if it's always "window"?