From b53e7beb6884a8de7710146112bc48aecd8737b4 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Micha=C5=82=20Go=C5=82=C4=99biowski-Owczarek?= Date: Thu, 14 Jul 2022 20:34:29 +0200 Subject: [PATCH] All: Remove deprecated .click() usage in demos/tests --- demos/button/default.html | 2 +- demos/controlgroup/splitbutton.html | 2 +- tests/visual/checkboxradio/checkboxradio.html | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/demos/button/default.html b/demos/button/default.html index 644dcd225..7ac6a325d 100644 --- a/demos/button/default.html +++ b/demos/button/default.html @@ -9,7 +9,7 @@ diff --git a/demos/controlgroup/splitbutton.html b/demos/controlgroup/splitbutton.html index ec2b78876..27f949816 100644 --- a/demos/controlgroup/splitbutton.html +++ b/demos/controlgroup/splitbutton.html @@ -21,7 +21,7 @@ } }); $( ".controlgroup" ).controlgroup(); - $( "button" ).click(function() { + $( "button" ).on( "click", function() { $( ".output" ).append( "
  • Running Last Action...
  • " ); }); diff --git a/tests/visual/checkboxradio/checkboxradio.html b/tests/visual/checkboxradio/checkboxradio.html index a472c9df2..8d26daeff 100644 --- a/tests/visual/checkboxradio/checkboxradio.html +++ b/tests/visual/checkboxradio/checkboxradio.html @@ -24,7 +24,7 @@ checkboxes.checkboxradio( "option", option, value ); } }); - $( ".controls > button" ).click( function() { + $( ".controls > button" ).on( "click", function() { if ( this.id !== "create" ) { checkboxes.checkboxradio( this.id ); } else { -- 2.39.5