chore: typo fixes (#1546)
* chore: fix typos in comments/JSDoc. * chore: fix typo in internal function name. * chore: fix typos in test comments/descriptions/variable names.
This commit is contained in:
@@ -26,13 +26,13 @@ describe('component: emit', () => {
|
||||
render(h(Comp), nodeOps.createElement('div'))
|
||||
|
||||
expect(onfoo).not.toHaveBeenCalled()
|
||||
// only capitalized or special chars are considerd event listeners
|
||||
// only capitalized or special chars are considered event listeners
|
||||
expect(onBar).toHaveBeenCalled()
|
||||
expect(onBaz).toHaveBeenCalled()
|
||||
})
|
||||
|
||||
// for v-model:foo-bar usage in DOM templates
|
||||
test('trigger hyphendated events for update:xxx events', () => {
|
||||
test('trigger hyphenated events for update:xxx events', () => {
|
||||
const Foo = defineComponent({
|
||||
render() {},
|
||||
created() {
|
||||
|
||||
@@ -45,10 +45,10 @@ describe('scopeId runtime support', () => {
|
||||
return h('div', this.$slots.default())
|
||||
})
|
||||
}
|
||||
const withChil2Id = withScopeId('child2')
|
||||
const withChild2Id = withScopeId('child2')
|
||||
const Child2 = {
|
||||
__scopeId: 'child2',
|
||||
render: withChil2Id(() => h('span'))
|
||||
render: withChild2Id(() => h('span'))
|
||||
}
|
||||
const App = {
|
||||
__scopeId: 'parent',
|
||||
|
||||
@@ -254,7 +254,7 @@ describe('vnode', () => {
|
||||
|
||||
// cloning with new ref, but with same context instance
|
||||
const cloned5 = cloneVNode(original, { ref: 'bar' })
|
||||
// new ref should use current context instance and overwrite orgiinal
|
||||
// new ref should use current context instance and overwrite original
|
||||
expect(cloned5.ref).toEqual([mockInstance2, 'bar'])
|
||||
|
||||
// cloning and adding ref to original that has no ref
|
||||
|
||||
@@ -121,7 +121,7 @@ export function defineComponent<
|
||||
EE
|
||||
>
|
||||
): ComponentPublicInstanceConstructor<
|
||||
// array props technically doesn't place any contraints on props in TSX before,
|
||||
// array props technically doesn't place any constraints on props in TSX before,
|
||||
// but now we can export array props in TSX
|
||||
CreateComponentPublicInstance<
|
||||
Readonly<{ [key in PropNames]?: any }>,
|
||||
|
||||
@@ -210,7 +210,7 @@ export const PublicInstanceProxyHandlers: ProxyHandler<any> = {
|
||||
appContext
|
||||
} = instance
|
||||
|
||||
// let @vue/reatvitiy know it should never observe Vue public instances.
|
||||
// let @vue/reactivity know it should never observe Vue public instances.
|
||||
if (key === ReactiveFlags.SKIP) {
|
||||
return true
|
||||
}
|
||||
|
||||
@@ -38,7 +38,7 @@ export type RawSlots = {
|
||||
// internal, indicates compiler generated slots
|
||||
// we use a reserved property instead of a vnode patchFlag because the slots
|
||||
// object may be directly passed down to a child component in a manual
|
||||
// render funciton, and the optimization hint need to be on the slot object
|
||||
// render function, and the optimization hint need to be on the slot object
|
||||
// itself to be preserved.
|
||||
_?: 1
|
||||
}
|
||||
|
||||
@@ -80,7 +80,7 @@ export function createHydrationFunctions(
|
||||
): Node | null => {
|
||||
const isFragmentStart = isComment(node) && node.data === '['
|
||||
const onMismatch = () =>
|
||||
handleMismtach(
|
||||
handleMismatch(
|
||||
node,
|
||||
vnode,
|
||||
parentComponent,
|
||||
@@ -397,7 +397,7 @@ export function createHydrationFunctions(
|
||||
}
|
||||
}
|
||||
|
||||
const handleMismtach = (
|
||||
const handleMismatch = (
|
||||
node: Node,
|
||||
vnode: VNode,
|
||||
parentComponent: ComponentInternalInstance | null,
|
||||
|
||||
Reference in New Issue
Block a user