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
879be3d8
Commit
879be3d8
authored
Apr 06, 2011
by
Dave Methvin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix some spacing and comment issues that crept in with the rebase.
parent
29386db3
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
60 additions
and
61 deletions
+60
-61
event.js
src/event.js
+60
-61
No files found.
src/event.js
View file @
879be3d8
...
@@ -397,11 +397,10 @@ jQuery.event = {
...
@@ -397,11 +397,10 @@ jQuery.event = {
},
},
handle
:
function
(
event
)
{
handle
:
function
(
event
)
{
// It's rare to arrive without handlers to call, so do all setup now.
// Snapshot the handlers list since a called handler may add/remove events.
event
=
jQuery
.
event
.
fix
(
event
||
window
.
event
);
event
=
jQuery
.
event
.
fix
(
event
||
window
.
event
);
// Snapshot the handlers list since a called handler may add/remove events.
var
handlers
=
((
jQuery
.
_data
(
this
,
"events"
)
||
{})[
event
.
type
]
||
[]).
slice
(
0
),
var
handlers
=
((
jQuery
.
_data
(
this
,
"events"
)
||
{})[
event
.
type
]
||
[]).
slice
(
0
),
all_handlers
=
!
event
.
exclusive
&&
!
event
.
namespace
,
run_all
=
!
event
.
exclusive
&&
!
event
.
namespace
,
args
=
jQuery
.
makeArray
(
arguments
);
args
=
jQuery
.
makeArray
(
arguments
);
// Use the fix-ed Event rather than the (read-only) native event
// Use the fix-ed Event rather than the (read-only) native event
...
@@ -413,7 +412,7 @@ jQuery.event = {
...
@@ -413,7 +412,7 @@ jQuery.event = {
// Triggered event must 1) be non-exclusive and have no namespace, or
// Triggered event must 1) be non-exclusive and have no namespace, or
// 2) have namespace(s) a subset or equal to those in the bound event.
// 2) have namespace(s) a subset or equal to those in the bound event.
if
(
all_handlers
||
event
.
namespace_re
.
test
(
handleObj
.
namespace
)
)
{
if
(
run_all
||
event
.
namespace_re
.
test
(
handleObj
.
namespace
)
)
{
// Pass in a reference to the handler function itself
// Pass in a reference to the handler function itself
// So that we can later remove it
// So that we can later remove it
event
.
handler
=
handleObj
.
handler
;
event
.
handler
=
handleObj
.
handler
;
...
...
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