refactor: use shared util, remove unused regex

This commit is contained in:
Evan You
2018-10-16 15:53:23 -04:00
parent 149d82d618
commit aac7805b3a
4 changed files with 5 additions and 13 deletions

View File

@@ -4,8 +4,7 @@ import { patchStyle } from './modules/style'
import { patchAttr } from './modules/attrs'
import { patchDOMProp } from './modules/props'
import { patchEvent } from './modules/events'
export const onRE = /^on/
import { onRE } from '@vue/shared'
// value, checked, selected & muted
// plus anything with upperCase letter in it are always patched as properties

View File

@@ -1,6 +1,6 @@
import { VNode } from '@vue/core'
import { handleDelegatedEvent } from './modules/events'
import { onRE } from './patchData'
import { onRE } from '@vue/shared'
export function teardownVNode(vnode: VNode) {
const { el, data } = vnode