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

Function processClassString

ui/widget.js:525–541  ·  view source on GitHub ↗
( classes, checkOption )

Source from the content-addressed store, hash-verified

523 }
524
525 function processClassString( classes, checkOption ) {
526 var current, i;
527 for ( i = 0; i < classes.length; i++ ) {
528 current = that.classesElementLookup[ classes[ i ] ] || $();
529 if ( options.add ) {
530 bindRemoveEvent();
531 current = $( $.uniqueSort( current.get().concat( options.element.get() ) ) );
532 } else {
533 current = $( current.not( options.element ).get() );
534 }
535 that.classesElementLookup[ classes[ i ] ] = current;
536 full.push( classes[ i ] );
537 if ( checkOption && options.classes[ classes[ i ] ] ) {
538 full.push( options.classes[ classes[ i ] ] );
539 }
540 }
541 }
542
543 if ( options.keys ) {
544 processClassString( options.keys.match( /\S+/g ) || [], true );

Callers 1

widget.jsFile · 0.85

Calls 1

bindRemoveEventFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…