Skip to content

Correct spelling of "highlight" #1045

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 26, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions entries/closest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ $( "li.item-a" )
<desc>Show how event delegation can be done with closest. The closest list element toggles a yellow background when it or its descendent is clicked.</desc>
<code><![CDATA[
$( document ).on( "click", function( event ) {
$( event.target ).closest( "li" ).toggleClass( "hilight" );
$( event.target ).closest( "li" ).toggleClass( "highlight" );
});
]]></code>
<css><![CDATA[
Expand All @@ -118,7 +118,7 @@ $( document ).on( "click", function( event ) {
padding: 3px;
background: #EEEEEE;
}
li.hilight {
li.highlight {
background: yellow;
}
]]></css>
Expand All @@ -134,7 +134,7 @@ $( document ).on( "click", function( event ) {
<code><![CDATA[
var listElements = $( "li" ).css( "color", "blue" );
$( document ).on( "click", function( event ) {
$( event.target ).closest( listElements ).toggleClass( "hilight" );
$( event.target ).closest( listElements ).toggleClass( "highlight" );
});
]]></code>
<css><![CDATA[
Expand All @@ -143,7 +143,7 @@ $( document ).on( "click", function( event ) {
padding: 3px;
background: #EEEEEE;
}
li.hilight {
li.highlight {
background: yellow;
}
]]></css>
Expand Down