Skip to content

Commit 910eeb6

Browse files
committed
All: Remove a few .click() uses
1 parent e37b0fd commit 910eeb6

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

entries/empty.xml

+2-2
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,9 @@ $( ".hello" ).empty();
3131
<example>
3232
<desc>Removes all child nodes (including text nodes) from all paragraphs</desc>
3333
<code><![CDATA[
34-
$( "button" ).click(function() {
34+
$( "button" ).on( "click", function() {
3535
$( "p" ).empty();
36-
});
36+
} );
3737
]]></code>
3838
<css><![CDATA[
3939
p {

entries/map.xml

+2-2
Original file line numberDiff line numberDiff line change
@@ -135,9 +135,9 @@ $.fn.equalizeHeights = function() {
135135
return this.height( Math.max.apply( this, maxHeight ) );
136136
};
137137
138-
$( "input" ).click(function() {
138+
$( "input" ).on( "click", function() {
139139
$( "div" ).equalizeHeights();
140-
});
140+
} );
141141
]]></code>
142142
<css><![CDATA[
143143
div {

entries/remove.xml

+2-2
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,9 @@ $( "div" ).remove( ".hello" );
4242
<example>
4343
<desc>Removes all paragraphs from the DOM</desc>
4444
<code><![CDATA[
45-
$( "button" ).click(function() {
45+
$( "button" ).on( "click", function() {
4646
$( "p" ).remove();
47-
});
47+
} );
4848
]]></code>
4949
<css><![CDATA[
5050
p {

entries/toggle.xml

+2-2
Original file line numberDiff line numberDiff line change
@@ -92,9 +92,9 @@ if ( display === true ) {
9292
<example>
9393
<desc>Toggles all paragraphs.</desc>
9494
<code><![CDATA[
95-
$( "button" ).click(function() {
95+
$( "button" ).on( "click", function() {
9696
$( "p" ).toggle();
97-
});
97+
} );
9898
]]></code>
9999
<html><![CDATA[
100100
<button>Toggle</button>

0 commit comments

Comments
 (0)