Skip to content

Commit f477ecd

Browse files
jsorefyyx990803
authored andcommitted
chore: spelling (#6535)
1 parent 0f00f8f commit f477ecd

File tree

20 files changed

+27
-27
lines changed

20 files changed

+27
-27
lines changed

benchmarks/dbmon/lib/memory-stats.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ var MemoryStats = function (){
5959
}
6060

6161
// TODO, add a sanity check to see if values are bucketed.
62-
// If so, reminde user to adopt the --enable-precise-memory-info flag.
62+
// If so, remind user to adopt the --enable-precise-memory-info flag.
6363
// open -a "/Applications/Google Chrome.app" --args --enable-precise-memory-info
6464

6565
var lastTime = Date.now();

examples/svg/svg.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ var stats = [
88
{ label: 'F', value: 100 }
99
]
1010

11-
// A resusable polygon graph component
11+
// A reusable polygon graph component
1212
Vue.component('polygraph', {
1313
props: ['stats'],
1414
template: '#polygraph-template',

src/core/instance/lifecycle.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ export function updateChildComponent (
229229
}
230230
vm.$options._renderChildren = renderChildren
231231

232-
// update $attrs and $listensers hash
232+
// update $attrs and $listeners hash
233233
// these are also reactive so they may trigger child update if the child
234234
// used them during render
235235
vm.$attrs = (parentVnode.data && parentVnode.data.attrs) || emptyObject

src/platforms/web/runtime/modules/style.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ function updateStyle (oldVnode: VNodeWithData, vnode: VNodeWithData) {
6565
const style = normalizeStyleBinding(vnode.data.style) || {}
6666

6767
// store normalized style under a different key for next diff
68-
// make sure to clone it if it's reactive, since the user likley wants
68+
// make sure to clone it if it's reactive, since the user likely wants
6969
// to mutate it.
7070
vnode.data.normalizedStyle = isDef(style.__ob__)
7171
? extend({}, style)

src/platforms/weex/entry-framework.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -437,7 +437,7 @@ function callFunction (globalObjects, body) {
437437
* This function helps speed up bundle compiling. Normally, the V8
438438
* engine needs to download, parse, and compile a bundle on every
439439
* visit. If 'compileBundle()' is available on native side,
440-
* the downloding, parsing, and compiling steps would be skipped.
440+
* the downloading, parsing, and compiling steps would be skipped.
441441
* @param {object} globalObjects
442442
* @param {string} body
443443
* @return {boolean}

src/platforms/weex/util/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export const isReservedTag = makeMap(
1212
)
1313

1414
// Elements that you can, intentionally, leave open (and which close themselves)
15-
// more flexable than web
15+
// more flexible than web
1616
export const canBeLeftOpenTag = makeMap(
1717
'web,spinner,switch,video,textarea,canvas,' +
1818
'indicator,marquee,countdown',

src/server/template-renderer/index.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ export default class TemplateRenderer {
6060
if (options.clientManifest) {
6161
const clientManifest = this.clientManifest = options.clientManifest
6262
this.publicPath = clientManifest.publicPath.replace(/\/$/, '')
63-
// preload/prefetch drectives
63+
// preload/prefetch directives
6464
this.preloadFiles = clientManifest.initial
6565
this.prefetchFiles = clientManifest.async
6666
// initial async chunk mapping
@@ -242,7 +242,7 @@ function getPreloadType (ext: string): string {
242242
} else if (/woff2?|ttf|otf|eot/.test(ext)) {
243243
return 'font'
244244
} else {
245-
// not exhausting all possbilities here, but above covers common cases
245+
// not exhausting all possibilities here, but above covers common cases
246246
return ''
247247
}
248248
}

test/ssr/compile-with-webpack.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import path from 'path'
22
import webpack from 'webpack'
3-
import MemoeryFS from 'memory-fs'
3+
import MemoryFS from 'memory-fs'
44

55
export function compileWithWebpack (file, extraConfig, cb) {
66
const config = Object.assign({
@@ -27,7 +27,7 @@ export function compileWithWebpack (file, extraConfig, cb) {
2727
}, extraConfig)
2828

2929
const compiler = webpack(config)
30-
const fs = new MemoeryFS()
30+
const fs = new MemoryFS()
3131
compiler.outputFileSystem = fs
3232

3333
compiler.run((err, stats) => {

test/ssr/ssr-string.spec.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -805,7 +805,7 @@ describe('SSR: renderToString', () => {
805805
expect(vm.a).toBe(func)
806806
})
807807

808-
it('should prevent xss in attribtues', done => {
808+
it('should prevent xss in attributes', done => {
809809
renderVmWithOptions({
810810
data: {
811811
xss: '"><script>alert(1)</script>'

test/unit/features/component/component-slot.spec.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -661,7 +661,7 @@ describe('Component slot', () => {
661661
}).then(done)
662662
})
663663

664-
// Github issue #5888
664+
// GitHub issue #5888
665665
it('should resolve correctly slot with keep-alive', () => {
666666
const vm = new Vue({
667667
template: `

test/unit/features/directives/model-select.spec.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import Vue from 'vue'
22
import { looseEqual } from 'shared/util'
33

44
// Android 4.4 Chrome 30 has the bug that a multi-select option cannot be
5-
// deseleted by setting its "selected" prop via JavaScript.
5+
// deselected by setting its "selected" prop via JavaScript.
66
function hasMultiSelectBug () {
77
var s = document.createElement('select')
88
s.setAttribute('multiple', '')

test/unit/features/directives/on.spec.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -497,7 +497,7 @@ describe('Directive v-on', () => {
497497
}).not.toThrow()
498498
})
499499

500-
// Github Issue #5046
500+
// GitHub Issue #5046
501501
it('should support keyboard modifier', () => {
502502
const spyLeft = jasmine.createSpy()
503503
const spyRight = jasmine.createSpy()
@@ -570,7 +570,7 @@ describe('Directive v-on', () => {
570570
})
571571
}
572572

573-
// Github Issues #5146
573+
// GitHub Issues #5146
574574
it('should only prevent when match keycode', () => {
575575
let prevented = false
576576
vm = new Vue({
@@ -652,7 +652,7 @@ describe('Directive v-on', () => {
652652
expect(mouseup.calls.count()).toBe(1)
653653
})
654654

655-
it('object syntax (usage in HOC, mixed with native listners)', () => {
655+
it('object syntax (usage in HOC, mixed with native listeners)', () => {
656656
const click = jasmine.createSpy('click')
657657
const mouseup = jasmine.createSpy('mouseup')
658658
const mousedown = jasmine.createSpy('mousedown')

test/unit/features/global-api/use.spec.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ describe('Global API: use', () => {
3434
expect(Ctor.options.directives['plugin-test']).toBe(def)
3535
})
3636

37-
// Github issue #5970
37+
// GitHub issue #5970
3838
it('should work on multi version', () => {
3939
const Ctor1 = Vue.extend({})
4040
const Ctor2 = Vue.extend({})

test/unit/features/instance/methods-data.spec.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ describe('Instance methods data', () => {
108108
expect(spy).toHaveBeenCalledWith(1)
109109
})
110110

111-
it('warn expresssion', () => {
111+
it('warn expression', () => {
112112
vm.$watch('a + b', spy)
113113
expect('Watcher only accepts simple dot-delimited paths').toHaveBeenWarned()
114114
})

test/unit/features/options/inject.spec.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ describe('Options provide/inject', () => {
145145
expect(child.baz).toBe(3)
146146
})
147147

148-
// Github issue #5194
148+
// GitHub issue #5194
149149
it('should work with functional', () => {
150150
new Vue({
151151
template: `<child/>`,
@@ -187,7 +187,7 @@ describe('Options provide/inject', () => {
187187
})
188188
}
189189

190-
// Github issue #5223
190+
// GitHub issue #5223
191191
it('should work with reactive array', done => {
192192
const vm = new Vue({
193193
template: `<div><child></child></div>`,
@@ -362,7 +362,7 @@ describe('Options provide/inject', () => {
362362
expect(`Injection "baz" not found`).not.toHaveBeenWarned()
363363
})
364364

365-
// Github issue #6008
365+
// GitHub issue #6008
366366
it('should merge provide from mixins (objects)', () => {
367367
const mixinA = { provide: { foo: 'foo' }}
368368
const mixinB = { provide: { bar: 'bar' }}

test/unit/features/transition/transition-group.spec.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ if (!isIE9) {
294294
expect('<transition-group> children must be keyed: <div>').toHaveBeenWarned()
295295
})
296296

297-
// Github issue #6006
297+
// GitHub issue #6006
298298
it('should work with dynamic name', done => {
299299
const vm = new Vue({
300300
template: `

test/unit/karma.cover.config.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ module.exports = function (config) {
1717
])
1818
})
1919

20-
// add babel-plugin-istanbul for code intrumentation
20+
// add babel-plugin-istanbul for code instrumentation
2121
options.webpack.module.rules[0].options = {
2222
plugins: [['istanbul', {
2323
exclude: [

test/unit/modules/compiler/codegen.spec.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ describe('codegen', () => {
282282
)
283283
})
284284

285-
// Github Issues #5146
285+
// GitHub Issues #5146
286286
it('generate events with generic modifiers and keycode correct order', () => {
287287
assertCodegen(
288288
'<input @keydown.enter.prevent="onInput">',

test/unit/modules/observer/scheduler.spec.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ describe('Scheduler', () => {
147147
}).then(done)
148148
})
149149

150-
// Github issue #5191
150+
// GitHub issue #5191
151151
it('emit should work when updated hook called', done => {
152152
const el = document.createElement('div')
153153
const vm = new Vue({

test/unit/modules/vdom/modules/directive.spec.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ describe('vdom directive module', () => {
1414
const vnode1 = new VNode('div', {}, [
1515
new VNode('p', {
1616
directives: [{
17-
name: 'directive1', value: 'hello', arg: 'arg1', modifiers: { modifire1: true }
17+
name: 'directive1', value: 'hello', arg: 'arg1', modifiers: { modifier1: true }
1818
}]
1919
}, undefined, 'hello world', undefined, vm)
2020
])
@@ -24,7 +24,7 @@ describe('vdom directive module', () => {
2424
const vnode2 = new VNode('div', {}, [
2525
new VNode('p', {
2626
directives: [{
27-
name: 'directive1', value: 'world', arg: 'arg1', modifiers: { modifire1: true }
27+
name: 'directive1', value: 'world', arg: 'arg1', modifiers: { modifier1: true }
2828
}]
2929
}, undefined, 'hello world', undefined, vm)
3030
])

0 commit comments

Comments
 (0)