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
2c331016
Commit
2c331016
authored
May 31, 2007
by
Brandon Aaron
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix for #923, #1136 and #1233
parent
d85a22a7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
event.js
src/event/event.js
+8
-2
No files found.
src/event/event.js
View file @
2c331016
...
...
@@ -64,7 +64,9 @@ jQuery.event = {
// Remember the function in a global list (for triggering)
if
(
!
this
.
global
[
type
])
this
.
global
[
type
]
=
[];
this
.
global
[
type
].
push
(
element
);
// Only add the element to the global list once
if
(
jQuery
.
inArray
(
element
,
this
.
global
[
type
])
==
-
1
)
this
.
global
[
type
].
push
(
element
);
},
guid
:
1
,
...
...
@@ -72,7 +74,7 @@ jQuery.event = {
// Detach an event or set of events from an element
remove
:
function
(
element
,
type
,
handler
)
{
var
events
=
element
.
$events
,
ret
;
var
events
=
element
.
$events
,
ret
,
index
;
if
(
events
)
{
// type is actually an event object here
...
...
@@ -104,6 +106,10 @@ jQuery.event = {
element
.
detachEvent
(
"on"
+
type
,
element
.
$handle
);
ret
=
null
;
delete
events
[
type
];
// Remove element from the global event type cache
while
(
this
.
global
[
type
]
&&
(
(
index
=
jQuery
.
inArray
(
element
,
this
.
global
[
type
]))
>=
0
)
)
delete
this
.
global
[
type
][
index
];
}
}
...
...
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