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
79992d75
Commit
79992d75
authored
Mar 13, 2013
by
Michał Z. Gołębiowski
Committed by
Timmy Willison
Mar 13, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Edited comments and minor adjustments. Fixes #13553. Closes gh-1195.
parent
ae352464
Changes
8
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
26 additions
and
24 deletions
+26
-24
AUTHORS.txt
AUTHORS.txt
+1
-0
release.js
build/release.js
+1
-1
benchmark.js
speed/benchmark.js
+1
-1
event.html
speed/event.html
+1
-1
slice.vs.concat.html
speed/slice.vs.concat.html
+13
-13
ajax.js
src/ajax.js
+5
-4
dimensions.js
src/dimensions.js
+2
-2
effects.js
src/effects.js
+2
-2
No files found.
AUTHORS.txt
View file @
79992d75
...
@@ -163,3 +163,4 @@ Adam Coulombe <me@adam.co>
...
@@ -163,3 +163,4 @@ Adam Coulombe <me@adam.co>
Andrew Plummer <plummer.andrew@gmail.com>
Andrew Plummer <plummer.andrew@gmail.com>
Nguyen Phuc Lam <ruado1987@gmail.com>
Nguyen Phuc Lam <ruado1987@gmail.com>
Dmitry Gusev <dmitry.gusev@gmail.com>
Dmitry Gusev <dmitry.gusev@gmail.com>
Michał Z. Gołębiowski <michal.golebiowski@laboratorium.ee>
build/release.js
View file @
79992d75
speed/benchmark.js
View file @
79992d75
speed/event.html
View file @
79992d75
speed/slice.vs.concat.html
View file @
79992d75
...
@@ -8,22 +8,22 @@
...
@@ -8,22 +8,22 @@
LOOPS
=
500
;
LOOPS
=
500
;
var
arr
=
new
Array
(
SIZE
);
var
arr
=
new
Array
(
SIZE
);
for
(
var
i
=
arr
.
length
-
1
;
i
>=
0
;
--
i
)
for
(
var
i
=
arr
.
length
-
1
;
i
>=
0
;
--
i
)
arr
[
i
]
=
0
;
arr
[
i
]
=
0
;
var
t
=
new
Date
;
var
t
=
new
Date
;
for
(
i
=
0
;
i
<
LOOPS
;
i
++
)
for
(
i
=
0
;
i
<
LOOPS
;
i
++
)
arr
.
slice
(
0
);
arr
.
slice
(
0
);
var
tslice
=
new
Date
-
t
;
var
tslice
=
new
Date
-
t
;
t
=
new
Date
;
t
=
new
Date
;
for
(
i
=
0
;
i
<
LOOPS
;
i
++
)
for
(
i
=
0
;
i
<
LOOPS
;
i
++
)
arr
.
concat
();
arr
.
concat
();
var
tconcat
=
new
Date
-
t
;
var
tconcat
=
new
Date
-
t
;
// clone() is just to see how fast built-ins are
// clone() is just to see how fast built-ins are
t
=
new
Date
;
t
=
new
Date
;
for
(
i
=
0
;
i
<
LOOPS
;
i
++
)
for
(
i
=
0
;
i
<
LOOPS
;
i
++
)
clone
(
arr
);
clone
(
arr
);
var
tclone
=
new
Date
-
t
;
var
tclone
=
new
Date
-
t
;
...
...
src/ajax.js
View file @
79992d75
...
@@ -140,7 +140,7 @@ jQuery.fn.load = function( url, params, callback ) {
...
@@ -140,7 +140,7 @@ jQuery.fn.load = function( url, params, callback ) {
off
=
url
.
indexOf
(
" "
);
off
=
url
.
indexOf
(
" "
);
if
(
off
>=
0
)
{
if
(
off
>=
0
)
{
selector
=
url
.
slice
(
off
,
url
.
length
);
selector
=
url
.
slice
(
off
);
url
=
url
.
slice
(
0
,
off
);
url
=
url
.
slice
(
0
,
off
);
}
}
...
@@ -427,10 +427,11 @@ jQuery.extend({
...
@@ -427,10 +427,11 @@ jQuery.extend({
jqXHR
.
error
=
jqXHR
.
fail
;
jqXHR
.
error
=
jqXHR
.
fail
;
// Remove hash character (#7531: and string promotion)
// Remove hash character (#7531: and string promotion)
// Add protocol if not provided (
#5866: IE7 issue with protocol-less urls
)
// Add protocol if not provided (
prefilters might expect it
)
// Handle falsy url in the settings object (#10093: consistency with old signature)
// Handle falsy url in the settings object (#10093: consistency with old signature)
// We also use the url parameter if available
// We also use the url parameter if available
s
.
url
=
(
(
url
||
s
.
url
||
ajaxLocation
)
+
""
).
replace
(
rhash
,
""
).
replace
(
rprotocol
,
ajaxLocParts
[
1
]
+
"//"
);
s
.
url
=
(
(
url
||
s
.
url
||
ajaxLocation
)
+
""
).
replace
(
rhash
,
""
)
.
replace
(
rprotocol
,
ajaxLocParts
[
1
]
+
"//"
);
// Alias method option to type as per ticket #12004
// Alias method option to type as per ticket #12004
s
.
type
=
options
.
method
||
options
.
type
||
s
.
method
||
s
.
type
;
s
.
type
=
options
.
method
||
options
.
type
||
s
.
method
||
s
.
type
;
...
...
src/dimensions.js
View file @
79992d75
...
@@ -20,8 +20,8 @@ jQuery.each( { Height: "height", Width: "width" }, function( name, type ) {
...
@@ -20,8 +20,8 @@ jQuery.each( { Height: "height", Width: "width" }, function( name, type ) {
if
(
elem
.
nodeType
===
9
)
{
if
(
elem
.
nodeType
===
9
)
{
doc
=
elem
.
documentElement
;
doc
=
elem
.
documentElement
;
// Either scroll[Width/Height] or offset[Width/Height] or client[Width/Height],
whichever is greatest
// Either scroll[Width/Height] or offset[Width/Height] or client[Width/Height],
//
unfortunately, this causes bug #3838 in IE6/8 only, but there is currently no good, small way to fix it.
//
whichever is greatest
return
Math
.
max
(
return
Math
.
max
(
elem
.
body
[
"scroll"
+
name
],
doc
[
"scroll"
+
name
],
elem
.
body
[
"scroll"
+
name
],
doc
[
"scroll"
+
name
],
elem
.
body
[
"offset"
+
name
],
doc
[
"offset"
+
name
],
elem
.
body
[
"offset"
+
name
],
doc
[
"offset"
+
name
],
...
...
src/effects.js
View file @
79992d75
...
@@ -440,8 +440,8 @@ Tween.propHooks = {
...
@@ -440,8 +440,8 @@ Tween.propHooks = {
}
}
};
};
//
Remove in 2.0 - this supports IE8's panic based approach
//
Support: IE9
// to setting things on disconnected nodes
//
Panic based approach
to setting things on disconnected nodes
Tween
.
propHooks
.
scrollTop
=
Tween
.
propHooks
.
scrollLeft
=
{
Tween
.
propHooks
.
scrollTop
=
Tween
.
propHooks
.
scrollLeft
=
{
set
:
function
(
tween
)
{
set
:
function
(
tween
)
{
...
...
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