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
b5b3c73d
Commit
b5b3c73d
authored
Nov 09, 2010
by
John Resig
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
We don't do end of line comments, move them above.
parent
a4df6945
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
event.js
src/event.js
+3
-2
manipulation.js
src/manipulation.js
+2
-1
No files found.
src/event.js
View file @
b5b3c73d
...
@@ -33,7 +33,7 @@ jQuery.event = {
...
@@ -33,7 +33,7 @@ jQuery.event = {
if
(
handler
===
false
)
{
if
(
handler
===
false
)
{
handler
=
returnFalse
;
handler
=
returnFalse
;
}
else
if
(
!
handler
)
{
}
else
if
(
!
handler
)
{
// Fixes bug #7229. Fix recommended by jdalton
// Fixes bug #7229. Fix recommended by jdalton
return
;
return
;
}
}
...
@@ -490,7 +490,8 @@ jQuery.event = {
...
@@ -490,7 +490,8 @@ jQuery.event = {
// Fix target property, if necessary
// Fix target property, if necessary
if
(
!
event
.
target
)
{
if
(
!
event
.
target
)
{
event
.
target
=
event
.
srcElement
||
document
;
// Fixes #1925 where srcElement might not be defined either
// Fixes #1925 where srcElement might not be defined either
event
.
target
=
event
.
srcElement
||
document
;
}
}
// check if target is a textnode (safari)
// check if target is a textnode (safari)
...
...
src/manipulation.js
View file @
b5b3c73d
...
@@ -7,7 +7,8 @@ var rinlinejQuery = / jQuery\d+="(?:\d+|null)"/g,
...
@@ -7,7 +7,8 @@ var rinlinejQuery = / jQuery\d+="(?:\d+|null)"/g,
rtbody
=
/<tbody/i
,
rtbody
=
/<tbody/i
,
rhtml
=
/<|&#
?\w
+;/
,
rhtml
=
/<|&#
?\w
+;/
,
rnocache
=
/<
(?:
script|object|embed|option|style
)
/i
,
rnocache
=
/<
(?:
script|object|embed|option|style
)
/i
,
rchecked
=
/checked
\s
*
(?:[^
=
]
|=
\s
*.checked.
)
/i
,
// checked="checked" or checked (html5)
// checked="checked" or checked (html5)
rchecked
=
/checked
\s
*
(?:[^
=
]
|=
\s
*.checked.
)
/i
,
raction
=
/
\=([^
="'>
\s]
+
\/)
>/g
,
raction
=
/
\=([^
="'>
\s]
+
\/)
>/g
,
wrapMap
=
{
wrapMap
=
{
option
:
[
1
,
"<select multiple='multiple'>"
,
"</select>"
],
option
:
[
1
,
"<select multiple='multiple'>"
,
"</select>"
],
...
...
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