mirror of
https://github.com/zhigang1992/angular.js.git
synced 2026-04-16 22:30:36 +08:00
refactor(jqLite): remove code duplication
This commit is contained in:
@@ -783,9 +783,9 @@ forEach({
|
||||
var eventFns = events[type];
|
||||
|
||||
if (!eventFns) {
|
||||
if (type == 'mouseenter' || type == 'mouseleave') {
|
||||
events[type] = [];
|
||||
events[type] = [];
|
||||
|
||||
if (type == 'mouseenter' || type == 'mouseleave') {
|
||||
// Refer to jQuery's implementation of mouseenter & mouseleave
|
||||
// Read about mouseenter and mouseleave:
|
||||
// http://www.quirksmode.org/js/events_mouse.html#link8
|
||||
@@ -801,7 +801,6 @@ forEach({
|
||||
|
||||
} else {
|
||||
addEventListenerFn(element, type, handle);
|
||||
events[type] = [];
|
||||
}
|
||||
eventFns = events[type];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user