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
b36fe468
Commit
b36fe468
authored
Jul 09, 2008
by
Ariel Flesler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
jquery event: closes #3112. It wasn't possible to bind 'data' to special events.
parent
6eb2bfe6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
event.js
src/event.js
+5
-5
No files found.
src/event.js
View file @
b36fe468
...
@@ -66,7 +66,7 @@ jQuery.event = {
...
@@ -66,7 +66,7 @@ jQuery.event = {
// Check for a special event handler
// Check for a special event handler
// Only use addEventListener/attachEvent if the special
// Only use addEventListener/attachEvent if the special
// events handler returns false
// events handler returns false
if
(
!
jQuery
.
event
.
special
[
type
]
||
jQuery
.
event
.
special
[
type
].
setup
.
call
(
elem
)
===
false
)
{
if
(
!
jQuery
.
event
.
special
[
type
]
||
jQuery
.
event
.
special
[
type
].
setup
.
call
(
elem
,
data
)
===
false
)
{
// Bind the global event handler to the element
// Bind the global event handler to the element
if
(
elem
.
addEventListener
)
if
(
elem
.
addEventListener
)
elem
.
addEventListener
(
type
,
handle
,
false
);
elem
.
addEventListener
(
type
,
handle
,
false
);
...
@@ -370,9 +370,9 @@ jQuery.event = {
...
@@ -370,9 +370,9 @@ jQuery.event = {
},
},
mouseenter
:
{
mouseenter
:
{
setup
:
function
()
{
setup
:
function
(
data
)
{
if
(
jQuery
.
browser
.
msie
)
return
false
;
if
(
jQuery
.
browser
.
msie
)
return
false
;
jQuery
(
this
).
bind
(
"mouseover"
,
jQuery
.
event
.
special
.
mouseenter
.
handler
);
jQuery
(
this
).
bind
(
"mouseover"
,
data
,
jQuery
.
event
.
special
.
mouseenter
.
handler
);
return
true
;
return
true
;
},
},
...
@@ -392,9 +392,9 @@ jQuery.event = {
...
@@ -392,9 +392,9 @@ jQuery.event = {
},
},
mouseleave
:
{
mouseleave
:
{
setup
:
function
()
{
setup
:
function
(
data
)
{
if
(
jQuery
.
browser
.
msie
)
return
false
;
if
(
jQuery
.
browser
.
msie
)
return
false
;
jQuery
(
this
).
bind
(
"mouseout"
,
jQuery
.
event
.
special
.
mouseleave
.
handler
);
jQuery
(
this
).
bind
(
"mouseout"
,
data
,
jQuery
.
event
.
special
.
mouseleave
.
handler
);
return
true
;
return
true
;
},
},
...
...
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