This repository was archived by the owner on Apr 12, 2024. It is now read-only.
File tree 2 files changed +4
-6
lines changed
2 files changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -559,14 +559,12 @@ forEach({
559
559
bindFn ( element , 'mouseover' , function ( event ) {
560
560
counter ++ ;
561
561
if ( counter == 1 ) {
562
- event . type = 'mouseenter' ;
563
562
mouseenter ( event ) ;
564
563
}
565
564
} ) ;
566
565
bindFn ( element , 'mouseout' , function ( event ) {
567
566
counter -- ;
568
567
if ( counter == 0 ) {
569
- event . type = 'mouseleave' ;
570
568
mouseleave ( event ) ;
571
569
}
572
570
} ) ;
Original file line number Diff line number Diff line change @@ -691,13 +691,13 @@ describe('jqLite', function() {
691
691
692
692
parent . bind ( 'mouseenter' , function ( ) { log += 'parentEnter;' ; } ) ;
693
693
parent . bind ( 'mouseleave' , function ( ) { log += 'parentLeave;' ; } ) ;
694
- parent . mouseover = function ( event ) { parent . data ( 'bind' ) . mouseover ( event || { } ) ; } ;
695
- parent . mouseout = function ( event ) { parent . data ( 'bind' ) . mouseout ( event || { } ) ; } ;
694
+ parent . mouseover = function ( ) { browserTrigger ( parent , ' mouseover' ) ; } ;
695
+ parent . mouseout = function ( ) { browserTrigger ( parent , ' mouseout' ) ; } ;
696
696
697
697
child . bind ( 'mouseenter' , function ( ) { log += 'childEnter;' ; } ) ;
698
698
child . bind ( 'mouseleave' , function ( ) { log += 'childLeave;' ; } ) ;
699
- child . mouseover = function ( event ) { child . data ( 'bind' ) . mouseover ( event || { } ) ; } ;
700
- child . mouseout = function ( event ) { child . data ( 'bind' ) . mouseout ( event || { } ) ; } ;
699
+ child . mouseover = function ( ) { browserTrigger ( child , ' mouseover' ) ; } ;
700
+ child . mouseout = function ( ) { browserTrigger ( child , ' mouseout' ) ; } ;
701
701
} ) ;
702
702
703
703
afterEach ( function ( ) {
You can’t perform that action at this time.
0 commit comments