Skip to content

Commit

Permalink
Remove legacy jQuery support
Browse files Browse the repository at this point in the history
  • Loading branch information
kasparsd committed Jan 16, 2025
1 parent 16e89a1 commit 8c20479
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions assets/js/controls.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
/* eslint camelcase: warn */

( function( $ ) {

var jQueryEvent, formEventCallback;
( function() {
var formEventCallback;

var formEventCallbacks = {
wpcf7mailsent: function( form ) {
Expand Down Expand Up @@ -143,12 +142,6 @@
}
} );
}

// Register the legacy jQuery events pre CF7 version 5.2.
} else if ( 'function' === typeof $ ) {
for ( jQueryEvent in jQueryEvents ) {
$( document ).on( jQueryEvent, jQueryEvents[ jQueryEvent ] );
}
}

}( jQuery ) );
}() );

0 comments on commit 8c20479

Please sign in to comment.