Skip to content

Commit b53e7be

Browse files
committed
All: Remove deprecated .click() usage in demos/tests
1 parent bb00536 commit b53e7be

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

demos/button/default.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<script src="../../external/requirejs/require.js"></script>
1010
<script src="../bootstrap.js">
1111
$( ".widget input[type=submit], .widget a, .widget button" ).button();
12-
$( "button, input, a" ).click( function( event ) {
12+
$( "button, input, a" ).on( "click", function( event ) {
1313
event.preventDefault();
1414
} );
1515
</script>

demos/controlgroup/splitbutton.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
}
2222
});
2323
$( ".controlgroup" ).controlgroup();
24-
$( "button" ).click(function() {
24+
$( "button" ).on( "click", function() {
2525
$( ".output" ).append( "<li>Running Last Action...</li>" );
2626
});
2727
</script>

tests/visual/checkboxradio/checkboxradio.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
checkboxes.checkboxradio( "option", option, value );
2525
}
2626
});
27-
$( ".controls > button" ).click( function() {
27+
$( ".controls > button" ).on( "click", function() {
2828
if ( this.id !== "create" ) {
2929
checkboxes.checkboxradio( this.id );
3030
} else {

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy