Created
March 5, 2014 03:45
-
-
Save sugarshin/9360786 to your computer and use it in GitHub Desktop.
isElement
This file contains 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 isElement(e) { | |
if (e && e.nodeType === 1) { | |
try { | |
e.nodeType = e.nodeType; | |
} catch(n) { | |
return true; | |
} | |
} | |
return false; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment