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
a4043cdc
Commit
a4043cdc
authored
Mar 01, 2010
by
jeresig
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Land some additional tweaks related to running through JSLint.
parent
fc08d0ea
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
10 additions
and
11 deletions
+10
-11
ajax.js
src/ajax.js
+1
-1
core.js
src/core.js
+6
-6
event.js
src/event.js
+1
-1
manipulation.js
src/manipulation.js
+1
-1
traversing.js
src/traversing.js
+1
-2
No files found.
src/ajax.js
View file @
a4043cdc
...
@@ -2,7 +2,7 @@ var jsc = now(),
...
@@ -2,7 +2,7 @@ var jsc = now(),
rscript
=
/<script
(
.|
\s)
*
?\/
script>/gi
,
rscript
=
/<script
(
.|
\s)
*
?\/
script>/gi
,
rselectTextarea
=
/select|textarea/i
,
rselectTextarea
=
/select|textarea/i
,
rinput
=
/color|date|datetime|email|hidden|month|number|password|range|search|tel|text|time|url|week/i
,
rinput
=
/color|date|datetime|email|hidden|month|number|password|range|search|tel|text|time|url|week/i
,
jsre
=
/=
\?(
&|$
)
/
,
jsre
=
/
\
=\?(
&|$
)
/
,
rquery
=
/
\?
/
,
rquery
=
/
\?
/
,
rts
=
/
(\?
|&
)
_=.*
?(
&|$
)
/
,
rts
=
/
(\?
|&
)
_=.*
?(
&|$
)
/
,
rurl
=
/^
(\w
+:
)?\/\/([^\/
?#
]
+
)
/
,
rurl
=
/^
(\w
+:
)?\/\/([^\/
?#
]
+
)
/
,
...
...
src/core.js
View file @
a4043cdc
...
@@ -49,7 +49,7 @@ var jQuery = function( selector, context ) {
...
@@ -49,7 +49,7 @@ var jQuery = function( selector, context ) {
// Save a reference to some core methods
// Save a reference to some core methods
toString
=
Object
.
prototype
.
toString
,
toString
=
Object
.
prototype
.
toString
,
hasOwn
Property
=
Object
.
prototype
.
hasOwnProperty
,
hasOwn
=
Object
.
prototype
.
hasOwnProperty
,
push
=
Array
.
prototype
.
push
,
push
=
Array
.
prototype
.
push
,
slice
=
Array
.
prototype
.
slice
,
slice
=
Array
.
prototype
.
slice
,
indexOf
=
Array
.
prototype
.
indexOf
;
indexOf
=
Array
.
prototype
.
indexOf
;
...
@@ -450,9 +450,9 @@ jQuery.extend({
...
@@ -450,9 +450,9 @@ jQuery.extend({
}
}
// Not own constructor property must be Object
// Not own constructor property must be Object
if
(
obj
.
constructor
if
(
obj
.
constructor
&&
&&
!
hasOwnProperty
.
call
(
obj
,
"constructor"
)
!
hasOwn
.
call
(
obj
,
"constructor"
)
&&
&&
!
hasOwnProperty
.
call
(
obj
.
constructor
.
prototype
,
"isPrototypeOf"
)
)
{
!
hasOwn
.
call
(
obj
.
constructor
.
prototype
,
"isPrototypeOf"
)
)
{
return
false
;
return
false
;
}
}
...
@@ -462,7 +462,7 @@ jQuery.extend({
...
@@ -462,7 +462,7 @@ jQuery.extend({
var
key
;
var
key
;
for
(
key
in
obj
)
{}
for
(
key
in
obj
)
{}
return
key
===
undefined
||
hasOwn
Property
.
call
(
obj
,
key
);
return
key
===
undefined
||
hasOwn
.
call
(
obj
,
key
);
},
},
isEmptyObject
:
function
(
obj
)
{
isEmptyObject
:
function
(
obj
)
{
...
@@ -803,5 +803,5 @@ function access( elems, key, value, exec, fn, pass ) {
...
@@ -803,5 +803,5 @@ function access( elems, key, value, exec, fn, pass ) {
}
}
function
now
()
{
function
now
()
{
return
(
new
Date
).
getTime
();
return
(
new
Date
()
).
getTime
();
}
}
src/event.js
View file @
a4043cdc
...
@@ -187,7 +187,7 @@ jQuery.event = {
...
@@ -187,7 +187,7 @@ jQuery.event = {
type = namespaces.shift();
type = namespaces.shift();
namespace = new RegExp("
(
^|
\\
.)
" +
namespace = new RegExp("
(
^|
\\
.)
" +
jQuery.map( namespaces.slice(0).sort(), fcleanup ).join("
\\
.(?:.
*
\\
.)?
") + "
(
\\
.
|
$
)
")
jQuery.map( namespaces.slice(0).sort(), fcleanup ).join("
\\
.(?:.
*
\\
.)?
") + "
(
\\
.
|
$
)
")
;
}
}
eventType = events[ type ];
eventType = events[ type ];
...
...
src/manipulation.js
View file @
a4043cdc
...
@@ -205,7 +205,7 @@ jQuery.fn.extend({
...
@@ -205,7 +205,7 @@ jQuery.fn.extend({
return
jQuery
.
clean
([
html
.
replace
(
rinlinejQuery
,
""
)
return
jQuery
.
clean
([
html
.
replace
(
rinlinejQuery
,
""
)
// Handle the case in IE 8 where action=/test/> self-closes a tag
// Handle the case in IE 8 where action=/test/> self-closes a tag
.
replace
(
/=
([^
="'>
\s]
+
\/)
>/g
,
'="$1">'
)
.
replace
(
/
\
=([^
="'>
\s]
+
\/)
>/g
,
'="$1">'
)
.
replace
(
rleadingWhitespace
,
""
)],
ownerDocument
)[
0
];
.
replace
(
rleadingWhitespace
,
""
)],
ownerDocument
)[
0
];
}
else
{
}
else
{
return
this
.
cloneNode
(
true
);
return
this
.
cloneNode
(
true
);
...
...
src/traversing.js
View file @
a4043cdc
var
runtil
=
/Until$/
,
var
runtil
=
/Until$/
,
rparentsprev
=
/^
(?:
parents|prevUntil|prevAll
)
/
,
rparentsprev
=
/^
(?:
parents|prevUntil|prevAll
)
/
,
// Note: This RegExp should be improved, or likely pulled from Sizzle
// Note: This RegExp should be improved, or likely pulled from Sizzle
rmultiselector
=
/,/
,
rmultiselector
=
/,/
;
slice
=
Array
.
prototype
.
slice
;
// Implement the identical functionality for filter and not
// Implement the identical functionality for filter and not
var
winnow
=
function
(
elements
,
qualifier
,
keep
)
{
var
winnow
=
function
(
elements
,
qualifier
,
keep
)
{
...
...
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