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
e47dfc63
Commit
e47dfc63
authored
Dec 26, 2012
by
Dave Methvin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Clean up comments, including browser support levels.
parent
c228874d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
event.js
src/event.js
+4
-3
No files found.
src/event.js
View file @
e47dfc63
...
...
@@ -51,7 +51,6 @@ jQuery.event = {
}
// Handle multiple events separated by a space
// jQuery(...).bind("mouseover mouseout", fn);
types
=
(
types
||
""
).
match
(
core_rnotwhite
)
||
[
""
];
for
(
;
t
<
types
.
length
;
t
++
)
{
...
...
@@ -343,7 +342,7 @@ jQuery.event = {
for
(
cur
=
event
.
target
;
cur
!=
this
;
cur
=
cur
.
parentNode
||
this
)
{
//
Don't process
clicks (ONLY) on disabled elements (#6911, #8165, #11382, #11764)
//
Ignore
clicks (ONLY) on disabled elements (#6911, #8165, #11382, #11764)
if
(
cur
.
disabled
!==
true
||
event
.
type
!==
"click"
)
{
selMatch
=
{};
matches
=
[];
...
...
@@ -511,7 +510,7 @@ jQuery.event = {
beforeunload
:
{
postDispatch
:
function
(
event
)
{
//
Even when returnValue equals to undefined Firefox will still show alert
//
Support: Firefox 10+
if
(
event
.
result
!==
undefined
)
{
event
.
originalEvent
.
returnValue
=
event
.
result
;
}
...
...
@@ -621,6 +620,7 @@ jQuery.Event.prototype = {
};
// Create mouseenter/leave events using mouseover/out and event-time checks
// Support: Chrome 15+
jQuery
.
each
({
mouseenter
:
"mouseover"
,
mouseleave
:
"mouseout"
...
...
@@ -648,6 +648,7 @@ jQuery.each({
});
// Create "bubbling" focus and blur events
// Support: Firefox 10+
if
(
!
jQuery
.
support
.
focusinBubbles
)
{
jQuery
.
each
({
focus
:
"focusin"
,
blur
:
"focusout"
},
function
(
orig
,
fix
)
{
...
...
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