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
/** | |
* Returns true if the given object is an element. | |
* @param thing {object/jQuery} | |
* @returns {boolean} | |
*/ | |
function isDomElement(thing) | |
// If you would like this function to handle jQuery objects. | |
if (thing && thing.jquery) { | |
thing = thing.get(0); | |
} |
NewerOlder