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

+1-1
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

+1-1
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

+1-1
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)