Created
August 19, 2014 02:12
-
-
Save Planeshifter/e18aaa686b3b9e46b6b8 to your computer and use it in GitHub Desktop.
getTarget
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function getTarget(e){ | |
| if (!e){ | |
| e = window.event; | |
| } | |
| return e.target || e.srcElement; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment