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
2d27e053
Commit
2d27e053
authored
Nov 30, 2009
by
lrbabe
Committed by
John Resig
Dec 06, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix inverted 'orig' and 'fix' event in mouseenter/mouseleave special events.
parent
3afc6533
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 @
2d27e053
...
@@ -538,15 +538,15 @@ delegate = function( event ) {
...
@@ -538,15 +538,15 @@ delegate = function( event ) {
// Create mouseenter and mouseleave events
// Create mouseenter and mouseleave events
jQuery.each({
jQuery.each({
mouse
over: "
mouseent
er
",
mouse
enter: "
mouseov
er
",
mouse
out: "
mouseleave
"
mouse
leave: "
mouseout
"
}, function( orig, fix ) {
}, function( orig, fix ) {
jQuery.event.special[
fix
] = {
jQuery.event.special[
orig
] = {
setup: function(data){
setup: function(data){
jQuery.event.add( this,
orig, data && data.selector ? delegate : withinElement, fix
);
jQuery.event.add( this,
fix, data && data.selector ? delegate : withinElement, orig
);
},
},
teardown: function(data){
teardown: function(data){
jQuery.event.remove( this,
orig
, data && data.selector ? delegate : withinElement );
jQuery.event.remove( this,
fix
, data && data.selector ? delegate : withinElement );
}
}
};
};
});
});
...
...
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