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: checkForHandler(elem, event) | |
// - Checks whether the elem has a handler for the namespaced event | |
// returns: bool - true if the event handler exists, false otherwise | |
// params: elem - element to query (either dom element or jquery object) | |
// event - string with the type of element with namespace (click.foo) | |
var checkForHandler = function(elem, event) { | |
if ((typeof elem === "undefined") || (typeof event === "undefined")) { | |
// really?? Y U No Pass Arguments? | |
return false; | |
} |