Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
J
jquery
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
夏彬
jquery
Commits
879225b3
Commit
879225b3
authored
Jul 30, 2006
by
John Resig
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed the nested comment issue.
parent
ed867fe6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
event.js
event/event.js
+4
-4
No files found.
event/event.js
View file @
879225b3
...
@@ -19,7 +19,7 @@ jQuery.fn.extend({
...
@@ -19,7 +19,7 @@ jQuery.fn.extend({
* @name toggle
* @name toggle
* @type jQuery
* @type jQuery
* @param Function even The function to execute on every even click.
* @param Function even The function to execute on every even click.
* @param Function odd The function to execute on every odd click.
* @param Function odd The function to execute on every odd click.
*/
*/
toggle
:
function
(
a
,
b
)
{
toggle
:
function
(
a
,
b
)
{
// If two functions are passed in, we're
// If two functions are passed in, we're
...
@@ -93,17 +93,17 @@ jQuery.fn.extend({
...
@@ -93,17 +93,17 @@ jQuery.fn.extend({
* In a nutshell, this is a solid replacement for using window.onload,
* In a nutshell, this is a solid replacement for using window.onload,
* and attaching a function to that. By using this method, your bound Function
* and attaching a function to that. By using this method, your bound Function
* will be called the instant the DOM is ready to be read and manipulated,
* will be called the instant the DOM is ready to be read and manipulated,
* which is exactly what 99.99% of all Javascript code needs to run.
* which is exactly what 99.99% of all Javascript code needs to run.
*
*
* Please ensure you have no code in your <body> onload event handler,
* Please ensure you have no code in your <body> onload event handler,
* otherwise $(document).ready() may not fire.
* otherwise $(document).ready() may not fire.
*
*
* @example $(document).ready(function(){
/* Your code here... */
});
* @example $(document).ready(function(){
Your code here...
});
*
*
* @name ready
* @name ready
* @type jQuery
* @type jQuery
* @param Function fn The function to be executed when the DOM is ready.
* @param Function fn The function to be executed when the DOM is ready.
*
/
*/
ready
:
function
(
f
)
{
ready
:
function
(
f
)
{
// If the DOM is already ready
// If the DOM is already ready
if
(
jQuery
.
isReady
)
if
(
jQuery
.
isReady
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment