9/22/2009

$.bindExist - Check if a bind's type is specified on an element or not.

I've just published my first official (tiny) jQuery plugin: $.bindExist

Usage:
$('#myDiv').bindExist('click');//return false
$('#myDiv').bindExist('click.myNS');//return false

$('#myDiv').bind('click.myNS',function(){alert('Plop!');});

$('#myDiv').bindExist('click');//return true
$('#myDiv').bindExist('click.myNS');//return true


« »
 
 
Made with on a hot august night from an airplane the 19th of March 2017.