(event: string)
| 227 | } |
| 228 | |
| 229 | function convertLegacyEventKey(event: string): string { |
| 230 | // normalize v2 event prefixes |
| 231 | if (event[0] === '&') { |
| 232 | event = event.slice(1) + 'Passive' |
| 233 | } |
| 234 | if (event[0] === '~') { |
| 235 | event = event.slice(1) + 'Once' |
| 236 | } |
| 237 | if (event[0] === '!') { |
| 238 | event = event.slice(1) + 'Capture' |
| 239 | } |
| 240 | return toHandlerKey(event) |
| 241 | } |
| 242 | |
| 243 | function convertLegacyDirectives( |
| 244 | vnode: VNode, |
no outgoing calls
no test coverage detected