MCPcopy Create free account
hub / github.com/jquery/jquery-ui / handlerProxy

Function handlerProxy

ui/widget.js:607–619  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

605
606 $.each( handlers, function( event, handler ) {
607 function handlerProxy() {
608
609 // Allow widgets to customize the disabled handling
610 // - disabled as an array instead of boolean
611 // - disabled class as method for disabling individual parts
612 if ( !suppressDisabledCheck &&
613 ( instance.options.disabled === true ||
614 $( this ).hasClass( "ui-state-disabled" ) ) ) {
615 return;
616 }
617 return ( typeof handler === "string" ? instance[ handler ] : handler )
618 .apply( instance, arguments );
619 }
620
621 // Copy the guid so direct unbinding works
622 if ( typeof handler !== "string" ) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…