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
d41b9832
Commit
d41b9832
authored
Dec 10, 2012
by
Oleg
Committed by
Dave Methvin
Dec 11, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix #10417. setTimeout w/o 2nd arg is jQuery.later! Close gh-1065.
parent
cef044d8
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
xhr.js
src/ajax/xhr.js
+1
-1
core.js
src/core.js
+2
-2
effects.js
src/effects.js
+1
-1
No files found.
src/ajax/xhr.js
View file @
d41b9832
...
@@ -190,7 +190,7 @@ if ( xhrSupported ) {
...
@@ -190,7 +190,7 @@ if ( xhrSupported ) {
}
else
if
(
xhr
.
readyState
===
4
)
{
}
else
if
(
xhr
.
readyState
===
4
)
{
// (IE6 & IE7) if it's in cache and has been
// (IE6 & IE7) if it's in cache and has been
// retrieved directly we need to fire the callback
// retrieved directly we need to fire the callback
setTimeout
(
callback
,
0
);
setTimeout
(
callback
);
}
else
{
}
else
{
handle
=
++
xhrId
;
handle
=
++
xhrId
;
if
(
xhrOnUnloadAbort
)
{
if
(
xhrOnUnloadAbort
)
{
...
...
src/core.js
View file @
d41b9832
...
@@ -386,7 +386,7 @@ jQuery.extend({
...
@@ -386,7 +386,7 @@ jQuery.extend({
// Make sure body exists, at least, in case IE gets a little overzealous (ticket #5443).
// Make sure body exists, at least, in case IE gets a little overzealous (ticket #5443).
if
(
!
document
.
body
)
{
if
(
!
document
.
body
)
{
return
setTimeout
(
jQuery
.
ready
,
1
);
return
setTimeout
(
jQuery
.
ready
);
}
}
// Remember that the DOM is ready
// Remember that the DOM is ready
...
@@ -858,7 +858,7 @@ jQuery.ready.promise = function( obj ) {
...
@@ -858,7 +858,7 @@ jQuery.ready.promise = function( obj ) {
// discovered by ChrisS here: http://bugs.jquery.com/ticket/12282#comment:15
// discovered by ChrisS here: http://bugs.jquery.com/ticket/12282#comment:15
if
(
document
.
readyState
===
"complete"
)
{
if
(
document
.
readyState
===
"complete"
)
{
// Handle it asynchronously to allow scripts the opportunity to delay ready
// Handle it asynchronously to allow scripts the opportunity to delay ready
setTimeout
(
jQuery
.
ready
,
1
);
setTimeout
(
jQuery
.
ready
);
// Standards-based browsers support DOMContentLoaded
// Standards-based browsers support DOMContentLoaded
}
else
if
(
document
.
addEventListener
)
{
}
else
if
(
document
.
addEventListener
)
{
...
...
src/effects.js
View file @
d41b9832
...
@@ -51,7 +51,7 @@ var fxNow, timerId,
...
@@ -51,7 +51,7 @@ var fxNow, timerId,
function
createFxNow
()
{
function
createFxNow
()
{
setTimeout
(
function
()
{
setTimeout
(
function
()
{
fxNow
=
undefined
;
fxNow
=
undefined
;
}
,
0
);
});
return
(
fxNow
=
jQuery
.
now
()
);
return
(
fxNow
=
jQuery
.
now
()
);
}
}
...
...
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