File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -784,8 +784,8 @@ forEach({
784
784
handle = expandoStore . handle = createEventHandler ( element , events ) ;
785
785
}
786
786
787
- var contains = Node . prototype . contains || function ( node , arg ) {
788
- return ! ! ( node . compareDocumentPosition ( arg ) & 16 ) ;
787
+ var contains = Node . prototype . contains || function ( arg ) {
788
+ return ! ! ( this . compareDocumentPosition ( arg ) & 16 ) ;
789
789
} ;
790
790
791
791
// http://jsperf.com/string-indexof-vs-split
@@ -808,7 +808,7 @@ forEach({
808
808
var target = this , related = event . relatedTarget ;
809
809
// For mousenter/leave call the handler if related is outside the target.
810
810
// NB: No relatedTarget if the mouse left/entered the browser window
811
- if ( ! related || ( related !== target && ! contains ( target , related ) ) ) {
811
+ if ( ! related || ( related !== target && ! contains . call ( target , related ) ) ) {
812
812
handle ( event , type ) ;
813
813
}
814
814
} ) ;
You can’t perform that action at this time.
0 commit comments