From f477ecdbbb1a86ffcf4508ab0f7351277a649a7e Mon Sep 17 00:00:00 2001 From: Josh Soref Date: Thu, 7 Sep 2017 07:33:09 -0400 Subject: [PATCH] chore: spelling (#6535) --- benchmarks/dbmon/lib/memory-stats.js | 2 +- examples/svg/svg.js | 2 +- src/core/instance/lifecycle.js | 2 +- src/platforms/web/runtime/modules/style.js | 2 +- src/platforms/weex/entry-framework.js | 2 +- src/platforms/weex/util/index.js | 2 +- src/server/template-renderer/index.js | 4 ++-- test/ssr/compile-with-webpack.js | 4 ++-- test/ssr/ssr-string.spec.js | 2 +- test/unit/features/component/component-slot.spec.js | 2 +- test/unit/features/directives/model-select.spec.js | 2 +- test/unit/features/directives/on.spec.js | 6 +++--- test/unit/features/global-api/use.spec.js | 2 +- test/unit/features/instance/methods-data.spec.js | 2 +- test/unit/features/options/inject.spec.js | 6 +++--- test/unit/features/transition/transition-group.spec.js | 2 +- test/unit/karma.cover.config.js | 2 +- test/unit/modules/compiler/codegen.spec.js | 2 +- test/unit/modules/observer/scheduler.spec.js | 2 +- test/unit/modules/vdom/modules/directive.spec.js | 4 ++-- 20 files changed, 27 insertions(+), 27 deletions(-) diff --git a/benchmarks/dbmon/lib/memory-stats.js b/benchmarks/dbmon/lib/memory-stats.js index df75fb30..dd7fa5ef 100644 --- a/benchmarks/dbmon/lib/memory-stats.js +++ b/benchmarks/dbmon/lib/memory-stats.js @@ -59,7 +59,7 @@ var MemoryStats = function (){ } // TODO, add a sanity check to see if values are bucketed. - // If so, reminde user to adopt the --enable-precise-memory-info flag. + // If so, remind user to adopt the --enable-precise-memory-info flag. // open -a "/Applications/Google Chrome.app" --args --enable-precise-memory-info var lastTime = Date.now(); diff --git a/examples/svg/svg.js b/examples/svg/svg.js index c46a5ede..f4491ce3 100644 --- a/examples/svg/svg.js +++ b/examples/svg/svg.js @@ -8,7 +8,7 @@ var stats = [ { label: 'F', value: 100 } ] -// A resusable polygon graph component +// A reusable polygon graph component Vue.component('polygraph', { props: ['stats'], template: '#polygraph-template', diff --git a/src/core/instance/lifecycle.js b/src/core/instance/lifecycle.js index 2f923c07..768e2e2b 100644 --- a/src/core/instance/lifecycle.js +++ b/src/core/instance/lifecycle.js @@ -229,7 +229,7 @@ export function updateChildComponent ( } vm.$options._renderChildren = renderChildren - // update $attrs and $listensers hash + // update $attrs and $listeners hash // these are also reactive so they may trigger child update if the child // used them during render vm.$attrs = (parentVnode.data && parentVnode.data.attrs) || emptyObject diff --git a/src/platforms/web/runtime/modules/style.js b/src/platforms/web/runtime/modules/style.js index ebb16c38..29e1c3c1 100644 --- a/src/platforms/web/runtime/modules/style.js +++ b/src/platforms/web/runtime/modules/style.js @@ -65,7 +65,7 @@ function updateStyle (oldVnode: VNodeWithData, vnode: VNodeWithData) { const style = normalizeStyleBinding(vnode.data.style) || {} // store normalized style under a different key for next diff - // make sure to clone it if it's reactive, since the user likley wants + // make sure to clone it if it's reactive, since the user likely wants // to mutate it. vnode.data.normalizedStyle = isDef(style.__ob__) ? extend({}, style) diff --git a/src/platforms/weex/entry-framework.js b/src/platforms/weex/entry-framework.js index 303ad36b..90f5f0d8 100644 --- a/src/platforms/weex/entry-framework.js +++ b/src/platforms/weex/entry-framework.js @@ -437,7 +437,7 @@ function callFunction (globalObjects, body) { * This function helps speed up bundle compiling. Normally, the V8 * engine needs to download, parse, and compile a bundle on every * visit. If 'compileBundle()' is available on native side, - * the downloding, parsing, and compiling steps would be skipped. + * the downloading, parsing, and compiling steps would be skipped. * @param {object} globalObjects * @param {string} body * @return {boolean} diff --git a/src/platforms/weex/util/index.js b/src/platforms/weex/util/index.js index a035be3a..b74949cd 100755 --- a/src/platforms/weex/util/index.js +++ b/src/platforms/weex/util/index.js @@ -12,7 +12,7 @@ export const isReservedTag = makeMap( ) // Elements that you can, intentionally, leave open (and which close themselves) -// more flexable than web +// more flexible than web export const canBeLeftOpenTag = makeMap( 'web,spinner,switch,video,textarea,canvas,' + 'indicator,marquee,countdown', diff --git a/src/server/template-renderer/index.js b/src/server/template-renderer/index.js index dc5052d9..ac549b28 100644 --- a/src/server/template-renderer/index.js +++ b/src/server/template-renderer/index.js @@ -60,7 +60,7 @@ export default class TemplateRenderer { if (options.clientManifest) { const clientManifest = this.clientManifest = options.clientManifest this.publicPath = clientManifest.publicPath.replace(/\/$/, '') - // preload/prefetch drectives + // preload/prefetch directives this.preloadFiles = clientManifest.initial this.prefetchFiles = clientManifest.async // initial async chunk mapping @@ -242,7 +242,7 @@ function getPreloadType (ext: string): string { } else if (/woff2?|ttf|otf|eot/.test(ext)) { return 'font' } else { - // not exhausting all possbilities here, but above covers common cases + // not exhausting all possibilities here, but above covers common cases return '' } } diff --git a/test/ssr/compile-with-webpack.js b/test/ssr/compile-with-webpack.js index 0e8ecc4f..765898e9 100644 --- a/test/ssr/compile-with-webpack.js +++ b/test/ssr/compile-with-webpack.js @@ -1,6 +1,6 @@ import path from 'path' import webpack from 'webpack' -import MemoeryFS from 'memory-fs' +import MemoryFS from 'memory-fs' export function compileWithWebpack (file, extraConfig, cb) { const config = Object.assign({ @@ -27,7 +27,7 @@ export function compileWithWebpack (file, extraConfig, cb) { }, extraConfig) const compiler = webpack(config) - const fs = new MemoeryFS() + const fs = new MemoryFS() compiler.outputFileSystem = fs compiler.run((err, stats) => { diff --git a/test/ssr/ssr-string.spec.js b/test/ssr/ssr-string.spec.js index 75de1bba..784b39a4 100644 --- a/test/ssr/ssr-string.spec.js +++ b/test/ssr/ssr-string.spec.js @@ -805,7 +805,7 @@ describe('SSR: renderToString', () => { expect(vm.a).toBe(func) }) - it('should prevent xss in attribtues', done => { + it('should prevent xss in attributes', done => { renderVmWithOptions({ data: { xss: '">' diff --git a/test/unit/features/component/component-slot.spec.js b/test/unit/features/component/component-slot.spec.js index 95a771e2..22e8b2d9 100644 --- a/test/unit/features/component/component-slot.spec.js +++ b/test/unit/features/component/component-slot.spec.js @@ -661,7 +661,7 @@ describe('Component slot', () => { }).then(done) }) - // Github issue #5888 + // GitHub issue #5888 it('should resolve correctly slot with keep-alive', () => { const vm = new Vue({ template: ` diff --git a/test/unit/features/directives/model-select.spec.js b/test/unit/features/directives/model-select.spec.js index 629e5a2f..7c265d25 100644 --- a/test/unit/features/directives/model-select.spec.js +++ b/test/unit/features/directives/model-select.spec.js @@ -2,7 +2,7 @@ import Vue from 'vue' import { looseEqual } from 'shared/util' // Android 4.4 Chrome 30 has the bug that a multi-select option cannot be -// deseleted by setting its "selected" prop via JavaScript. +// deselected by setting its "selected" prop via JavaScript. function hasMultiSelectBug () { var s = document.createElement('select') s.setAttribute('multiple', '') diff --git a/test/unit/features/directives/on.spec.js b/test/unit/features/directives/on.spec.js index fff8a11d..f22a47e9 100644 --- a/test/unit/features/directives/on.spec.js +++ b/test/unit/features/directives/on.spec.js @@ -497,7 +497,7 @@ describe('Directive v-on', () => { }).not.toThrow() }) - // Github Issue #5046 + // GitHub Issue #5046 it('should support keyboard modifier', () => { const spyLeft = jasmine.createSpy() const spyRight = jasmine.createSpy() @@ -570,7 +570,7 @@ describe('Directive v-on', () => { }) } - // Github Issues #5146 + // GitHub Issues #5146 it('should only prevent when match keycode', () => { let prevented = false vm = new Vue({ @@ -652,7 +652,7 @@ describe('Directive v-on', () => { expect(mouseup.calls.count()).toBe(1) }) - it('object syntax (usage in HOC, mixed with native listners)', () => { + it('object syntax (usage in HOC, mixed with native listeners)', () => { const click = jasmine.createSpy('click') const mouseup = jasmine.createSpy('mouseup') const mousedown = jasmine.createSpy('mousedown') diff --git a/test/unit/features/global-api/use.spec.js b/test/unit/features/global-api/use.spec.js index ca8e8f8e..00053f80 100644 --- a/test/unit/features/global-api/use.spec.js +++ b/test/unit/features/global-api/use.spec.js @@ -34,7 +34,7 @@ describe('Global API: use', () => { expect(Ctor.options.directives['plugin-test']).toBe(def) }) - // Github issue #5970 + // GitHub issue #5970 it('should work on multi version', () => { const Ctor1 = Vue.extend({}) const Ctor2 = Vue.extend({}) diff --git a/test/unit/features/instance/methods-data.spec.js b/test/unit/features/instance/methods-data.spec.js index 49e9b6f5..8684c69e 100644 --- a/test/unit/features/instance/methods-data.spec.js +++ b/test/unit/features/instance/methods-data.spec.js @@ -108,7 +108,7 @@ describe('Instance methods data', () => { expect(spy).toHaveBeenCalledWith(1) }) - it('warn expresssion', () => { + it('warn expression', () => { vm.$watch('a + b', spy) expect('Watcher only accepts simple dot-delimited paths').toHaveBeenWarned() }) diff --git a/test/unit/features/options/inject.spec.js b/test/unit/features/options/inject.spec.js index 61111a7d..3641a56f 100644 --- a/test/unit/features/options/inject.spec.js +++ b/test/unit/features/options/inject.spec.js @@ -145,7 +145,7 @@ describe('Options provide/inject', () => { expect(child.baz).toBe(3) }) - // Github issue #5194 + // GitHub issue #5194 it('should work with functional', () => { new Vue({ template: ``, @@ -187,7 +187,7 @@ describe('Options provide/inject', () => { }) } - // Github issue #5223 + // GitHub issue #5223 it('should work with reactive array', done => { const vm = new Vue({ template: `
`, @@ -362,7 +362,7 @@ describe('Options provide/inject', () => { expect(`Injection "baz" not found`).not.toHaveBeenWarned() }) - // Github issue #6008 + // GitHub issue #6008 it('should merge provide from mixins (objects)', () => { const mixinA = { provide: { foo: 'foo' }} const mixinB = { provide: { bar: 'bar' }} diff --git a/test/unit/features/transition/transition-group.spec.js b/test/unit/features/transition/transition-group.spec.js index 0f40538f..2988d5bf 100644 --- a/test/unit/features/transition/transition-group.spec.js +++ b/test/unit/features/transition/transition-group.spec.js @@ -294,7 +294,7 @@ if (!isIE9) { expect(' children must be keyed:
').toHaveBeenWarned() }) - // Github issue #6006 + // GitHub issue #6006 it('should work with dynamic name', done => { const vm = new Vue({ template: ` diff --git a/test/unit/karma.cover.config.js b/test/unit/karma.cover.config.js index b3e830a4..172225bc 100644 --- a/test/unit/karma.cover.config.js +++ b/test/unit/karma.cover.config.js @@ -17,7 +17,7 @@ module.exports = function (config) { ]) }) - // add babel-plugin-istanbul for code intrumentation + // add babel-plugin-istanbul for code instrumentation options.webpack.module.rules[0].options = { plugins: [['istanbul', { exclude: [ diff --git a/test/unit/modules/compiler/codegen.spec.js b/test/unit/modules/compiler/codegen.spec.js index f131bc88..8189b529 100644 --- a/test/unit/modules/compiler/codegen.spec.js +++ b/test/unit/modules/compiler/codegen.spec.js @@ -282,7 +282,7 @@ describe('codegen', () => { ) }) - // Github Issues #5146 + // GitHub Issues #5146 it('generate events with generic modifiers and keycode correct order', () => { assertCodegen( '', diff --git a/test/unit/modules/observer/scheduler.spec.js b/test/unit/modules/observer/scheduler.spec.js index 7daf31c8..14433753 100644 --- a/test/unit/modules/observer/scheduler.spec.js +++ b/test/unit/modules/observer/scheduler.spec.js @@ -147,7 +147,7 @@ describe('Scheduler', () => { }).then(done) }) - // Github issue #5191 + // GitHub issue #5191 it('emit should work when updated hook called', done => { const el = document.createElement('div') const vm = new Vue({ diff --git a/test/unit/modules/vdom/modules/directive.spec.js b/test/unit/modules/vdom/modules/directive.spec.js index f77d120b..38c53186 100644 --- a/test/unit/modules/vdom/modules/directive.spec.js +++ b/test/unit/modules/vdom/modules/directive.spec.js @@ -14,7 +14,7 @@ describe('vdom directive module', () => { const vnode1 = new VNode('div', {}, [ new VNode('p', { directives: [{ - name: 'directive1', value: 'hello', arg: 'arg1', modifiers: { modifire1: true } + name: 'directive1', value: 'hello', arg: 'arg1', modifiers: { modifier1: true } }] }, undefined, 'hello world', undefined, vm) ]) @@ -24,7 +24,7 @@ describe('vdom directive module', () => { const vnode2 = new VNode('div', {}, [ new VNode('p', { directives: [{ - name: 'directive1', value: 'world', arg: 'arg1', modifiers: { modifire1: true } + name: 'directive1', value: 'world', arg: 'arg1', modifiers: { modifier1: true } }] }, undefined, 'hello world', undefined, vm) ])