Skip to content

All: Mark event aliases as deprecated #1223

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 33 commits into from
Apr 24, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
1b00d2b
All: Mark event aliases as deprecated
mgol Apr 16, 2023
bff1493
All: Remove the detach-shorthand note
mgol Apr 17, 2023
bf1f218
ajaxStart: Mark the shorthand method as deprecated
mgol Apr 17, 2023
54f5c8e
All: Fix Additional Notes for all AJAX events
mgol Apr 17, 2023
df4a1c6
focus: Deprecate .focus(), tweak the blur page
mgol Apr 18, 2023
9c7639f
All: Separate blur & focus shorthand pages
mgol Apr 18, 2023
c696ca7
All: Tweak focus/blur, migrate focusin/focusout
mgol Apr 18, 2023
3b02e6b
All: Fix indentation of examples
mgol Apr 18, 2023
35b481f
hover: Deprecate the API
mgol Apr 20, 2023
a23ab44
All: Add individual descriptions back
mgol Apr 20, 2023
4f08883
resize: Deprecate the API
mgol Apr 20, 2023
8905219
All: Deprecate scroll, click & dblclick; fix resize
mgol Apr 21, 2023
a270b7a
All: De-indent entries on event pages for better Git history
mgol Apr 21, 2023
f4b077b
ajaxStart: separate the deprecated page
mgol Apr 21, 2023
611f3c7
All: Move descriptions in Ajax event pages up
mgol Apr 21, 2023
47c6e85
All: JavaScript event -> event
mgol Apr 21, 2023
e70bfa5
All: Deprecate mouse* shorthands
mgol Apr 21, 2023
e6d774d
All: Deprecate change & select
mgol Apr 21, 2023
2537bc7
All: Remove a few .click() uses
mgol Apr 21, 2023
db29f90
All: Deprecate other event shorthands
mgol Apr 23, 2023
027012f
All: Add separate shorthand pages for load/unload
mgol Apr 23, 2023
4f41f67
All: Link to shorthands from event pages
mgol Apr 23, 2023
ada6134
All: Add other AJAX shorthand pages
mgol Apr 23, 2023
6f41267
All: Migrare AJAX event pages
mgol Apr 23, 2023
6f9101b
All: Remove obsolete shortcut notes
mgol Apr 23, 2023
f6ac37a
error: Separate the event page, like for load & unload
mgol Apr 23, 2023
d0ef87b
All: Remove internal usage of deprecated event shorthands
mgol Apr 23, 2023
16ea4ad
All: Tweak wording on event pages on on/bind
mgol Apr 23, 2023
4205fd6
All: Remove internal ajax event shorthand usage
mgol Apr 23, 2023
fecc648
All: Add descriptions to ajax event shorthand pages
mgol Apr 23, 2023
65d3204
All: Tweak the warning on load/unload, add one for error
mgol Apr 24, 2023
a7fa37f
All: Add shorthand notes on AJAX event pages as well
mgol Apr 24, 2023
b4bc05e
All: Fix links to AJAX events on shorthand pages
mgol Apr 24, 2023
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
Prev Previous commit
Next Next commit
All: Fix indentation of examples
  • Loading branch information
mgol committed Apr 23, 2023
commit 3b02e6b27dcb6f8bb80f17cf304baf588b766cd0
2 changes: 1 addition & 1 deletion entries/blur.xml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ $( "#other" ).on( "click", function() {
<desc>To trigger the blur event on all paragraphs:</desc>
<code><![CDATA[
$( "p" ).trigger( "blur" );
]]></code>
]]></code>
</example>
<category slug="events/form-events"/>
<category slug="forms"/>
Expand Down
10 changes: 5 additions & 5 deletions entries/focus.xml
Original file line number Diff line number Diff line change
Expand Up @@ -59,32 +59,32 @@ $( "#other" ).on( "click", function() {
span {
display: none;
}
]]></css>
]]></css>
<code><![CDATA[
$( "input" ).on( "focus", function() {
$( this ).next( "span" ).css( "display", "inline" ).fadeOut( 1000 );
} );
]]></code>
]]></code>
<html><![CDATA[
<p><input type="text"> <span>focus fire</span></p>
<p><input type="password"> <span>focus fire</span></p>
]]></html>
]]></html>
</example>
<example>
<desc>To stop people from writing in text input boxes, try:</desc>
<code><![CDATA[
$( "input[type=text]" ).on( "focus", function() {
$( this ).trigger( "blur" );
} );
]]></code>
]]></code>
</example>
<example>
<desc>To focus on a login input box with id 'login' on page startup, try:</desc>
<code><![CDATA[
$( function() {
$( "#login" ).trigger( "focus" );
} );
]]></code>
]]></code>
</example>
<category slug="events/form-events"/>
<category slug="forms"/>
Expand Down
6 changes: 3 additions & 3 deletions entries/focusin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -26,16 +26,16 @@
span {
display: none;
}
]]></css>
]]></css>
<code><![CDATA[
$( "p" ).on( "focusin", function() {
$( this ).find( "span" ).css( "display", "inline" ).fadeOut( 1000 );
} );
]]></code>
]]></code>
<html><![CDATA[
<p><input type="text"> <span>focusin fire</span></p>
<p><input type="password"> <span>focusin fire</span></p>
]]></html>
]]></html>
</example>
<category slug="events/form-events"/>
<category slug="forms"/>
Expand Down
6 changes: 3 additions & 3 deletions entries/focusout.xml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
.inputs p {
margin-top: 0;
}
]]></css>
]]></css>
<code><![CDATA[
var focusout = 0,
blur = 0;
Expand All @@ -44,7 +44,7 @@ $( "p" )
blur++;
$( "#blur-count" ).text( "blur fired: " + blur + "x" );
} );
]]></code>
]]></code>
<html><![CDATA[
<div class="inputs">
<p>
Expand All @@ -57,7 +57,7 @@ $( "p" )
</div>
<div id="focus-count">focusout fire</div>
<div id="blur-count">blur fire</div>
]]></html>
]]></html>
</example>
<category slug="events/form-events"/>
<category slug="forms"/>
Expand Down