1/*! 2 * jQuery Toggle Click - v1.0.0 - 2020-11-18 3 * Copyright DesignThemes 4 */ 5(function( jQuery, window, undefined ) { 6 // "use strict"; 7 8 var oldToggle = jQuery.fn.toggleClick; 9 10 jQuery.fn.toggleClick = function( fn, fn2 ) { 11 12 // Don't mess with animation or css toggles 13 if ( !jQuery.isFunction( fn ) || !jQuery.isFunction( fn2 ) ) { 14 return oldToggle.apply( this, arguments ); 15 } 16 17 // Save reference to arguments for access in closure 18 var args = arguments, 19 guid = fn.guid || jQuery.guid++, 20 i = 0, 21 toggler = function( event ) { 22 // Figure out which function to execute 23 var lastToggle = ( jQuery._data( this, "lastToggle" + fn.guid ) || 0 ) % i; 24 jQuery._data( this, "lastToggle" + fn.guid, lastToggle + 1 ); 25 26 // Make sure that clicks stop 27 event.preventDefault(); 28 29 // and execute the function 30 return args[ lastToggle ].apply( this, arguments ) || false; 31 }; 32 33 // link all the functions, so any of them can unbind this click handler 34 toggler.guid = guid; 35 while ( i < args.length ) { 36 args[ i++ ].guid = guid; 37 } 38 39 return this.click( toggler ); 40 }; 41 42})( jQuery, window );
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.