File tree Expand file tree Collapse file tree 2 files changed +5
-8
lines changed Expand file tree Collapse file tree 2 files changed +5
-8
lines changed Original file line number Diff line number Diff line change @@ -217,8 +217,10 @@ Directive.prototype._checkStatement = function () {
217
217
) {
218
218
var fn = expParser . parse ( expression ) . get
219
219
var scope = this . _scope || this . vm
220
- var handler = function ( ) {
220
+ var handler = function ( e ) {
221
+ scope . $event = e
221
222
fn . call ( scope , scope )
223
+ scope . $event = null
222
224
}
223
225
if ( this . filters ) {
224
226
handler = scope . _applyFilters ( handler , null , this . filters )
Original file line number Diff line number Diff line change @@ -100,13 +100,8 @@ module.exports = {
100
100
}
101
101
102
102
this . reset ( )
103
- var scope = this . _scope || this . vm
104
- this . handler = function ( e ) {
105
- scope . $event = e
106
- var res = handler ( e )
107
- scope . $event = null
108
- return res
109
- }
103
+ this . handler = handler
104
+
110
105
if ( this . iframeBind ) {
111
106
this . iframeBind ( )
112
107
} else {
You can’t perform that action at this time.
0 commit comments