File tree Expand file tree Collapse file tree 2 files changed +2
-6
lines changed
runtime-dom/src/directives Expand file tree Collapse file tree 2 files changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -163,7 +163,7 @@ export const isMemberExpressionNode = __BROWSER__
163
163
return (
164
164
ret . type === 'MemberExpression' ||
165
165
ret . type === 'OptionalMemberExpression' ||
166
- ret . type === 'Identifier'
166
+ ( ret . type === 'Identifier' && ret . name !== 'undefined' )
167
167
)
168
168
} catch ( e ) {
169
169
return false
Original file line number Diff line number Diff line change @@ -35,13 +35,9 @@ const modifierGuards: Record<
35
35
export const withModifiers = <
36
36
T extends ( event : Event , ...args : unknown [ ] ) => any
37
37
> (
38
- fn : T & { _withMods ?: { [ key : string ] : T } } ,
38
+ fn : T & { _withMods ?: { [ key : string ] : T } } ,
39
39
modifiers : string [ ]
40
40
) => {
41
-
42
- if ( ! fn ) {
43
- return
44
- }
45
41
const cache = fn . _withMods || ( fn . _withMods = { } )
46
42
const cacheKey = modifiers . join ( '.' )
47
43
return (
You can’t perform that action at this time.
0 commit comments