Direktori : /proc/thread-self/root/home/athamevents/www/admin/assets/lib/jquery-validation/src/ |
Current File : //proc/thread-self/root/home/athamevents/www/admin/assets/lib/jquery-validation/src/delegate.js |
// provides delegate(type: String, delegate: Selector, handler: Callback) plugin for easier event delegation // handler is only called when $(event.target).is(delegate), in the scope of the jquery-object for event.target $.extend($.fn, { validateDelegate: function( delegate, type, handler ) { return this.bind(type, function( event ) { var target = $(event.target); if ( target.is(delegate) ) { return handler.apply(target, arguments); } }); } });