@@ -62,8 +62,8 @@ avalon.bind = function(elem, type, fn) {
62
62
return fn
63
63
} else {
64
64
/* istanbul ignore next */
65
- function cb ( e ) {
66
- fn . call ( elem , new avEvent ( e ) )
65
+ function cb ( e ) {
66
+ fn . call ( elem , new avEvent ( e ) )
67
67
}
68
68
avalon . _nativeBind ( elem , type , cb )
69
69
return cb
@@ -178,30 +178,30 @@ function delegateEvent(type) {
178
178
}
179
179
180
180
var eventProto = {
181
- webkitMovementY :1 ,
181
+ webkitMovementY : 1 ,
182
182
webkitMovementX : 1 ,
183
- keyLocation :1 ,
184
- fixEvent : function ( ) { } ,
185
- preventDefault : function ( ) {
183
+ keyLocation : 1 ,
184
+ fixEvent : function ( ) { } ,
185
+ preventDefault : function ( ) {
186
186
var e = this . originalEvent || { }
187
187
e . returnValue = this . returnValue = false
188
188
if ( modern && e . preventDefault ) {
189
189
e . preventDefault ( )
190
190
}
191
191
} ,
192
- stopPropagation : function ( ) {
192
+ stopPropagation : function ( ) {
193
193
var e = this . originalEvent || { }
194
194
e . cancelBubble = this . cancelBubble = true
195
195
if ( modern && e . stopPropagation ) {
196
196
e . stopPropagation ( )
197
197
}
198
198
} ,
199
- stopImmediatePropagation : function ( ) {
199
+ stopImmediatePropagation : function ( ) {
200
200
this . stopPropagation ( )
201
201
this . stopImmediate = true
202
202
} ,
203
- toString : function ( ) {
204
- return '[object Event]' //#1619
203
+ toString : function ( ) {
204
+ return '[object Event]' //#1619
205
205
}
206
206
}
207
207
@@ -223,8 +223,8 @@ export function avEvent(event) {
223
223
this . originalEvent = event
224
224
}
225
225
avEvent . prototype = eventProto
226
- //针对firefox, chrome修正mouseenter, mouseleave
227
- /* istanbul ignore if */
226
+ //针对firefox, chrome修正mouseenter, mouseleave
227
+ /* istanbul ignore if */
228
228
if ( ! ( 'onmouseenter' in root ) ) {
229
229
avalon . each ( {
230
230
mouseenter : 'mouseover' ,
0 commit comments