Browse Source

chore: spelling (#6535)

dev
Josh Soref 7 years ago
committed by Evan You
parent
commit
f477ecdbbb
  1. 2
      benchmarks/dbmon/lib/memory-stats.js
  2. 2
      examples/svg/svg.js
  3. 2
      src/core/instance/lifecycle.js
  4. 2
      src/platforms/web/runtime/modules/style.js
  5. 2
      src/platforms/weex/entry-framework.js
  6. 2
      src/platforms/weex/util/index.js
  7. 4
      src/server/template-renderer/index.js
  8. 4
      test/ssr/compile-with-webpack.js
  9. 2
      test/ssr/ssr-string.spec.js
  10. 2
      test/unit/features/component/component-slot.spec.js
  11. 2
      test/unit/features/directives/model-select.spec.js
  12. 6
      test/unit/features/directives/on.spec.js
  13. 2
      test/unit/features/global-api/use.spec.js
  14. 2
      test/unit/features/instance/methods-data.spec.js
  15. 6
      test/unit/features/options/inject.spec.js
  16. 2
      test/unit/features/transition/transition-group.spec.js
  17. 2
      test/unit/karma.cover.config.js
  18. 2
      test/unit/modules/compiler/codegen.spec.js
  19. 2
      test/unit/modules/observer/scheduler.spec.js
  20. 4
      test/unit/modules/vdom/modules/directive.spec.js

2
benchmarks/dbmon/lib/memory-stats.js

@ -59,7 +59,7 @@ var MemoryStats = function (){
} }
// TODO, add a sanity check to see if values are bucketed. // 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 // open -a "/Applications/Google Chrome.app" --args --enable-precise-memory-info
var lastTime = Date.now(); var lastTime = Date.now();

2
examples/svg/svg.js

@ -8,7 +8,7 @@ var stats = [
{ label: 'F', value: 100 } { label: 'F', value: 100 }
] ]
// A resusable polygon graph component // A reusable polygon graph component
Vue.component('polygraph', { Vue.component('polygraph', {
props: ['stats'], props: ['stats'],
template: '#polygraph-template', template: '#polygraph-template',

2
src/core/instance/lifecycle.js

@ -229,7 +229,7 @@ export function updateChildComponent (
} }
vm.$options._renderChildren = renderChildren 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 // these are also reactive so they may trigger child update if the child
// used them during render // used them during render
vm.$attrs = (parentVnode.data && parentVnode.data.attrs) || emptyObject vm.$attrs = (parentVnode.data && parentVnode.data.attrs) || emptyObject

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

@ -65,7 +65,7 @@ function updateStyle (oldVnode: VNodeWithData, vnode: VNodeWithData) {
const style = normalizeStyleBinding(vnode.data.style) || {} const style = normalizeStyleBinding(vnode.data.style) || {}
// store normalized style under a different key for next diff // 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. // to mutate it.
vnode.data.normalizedStyle = isDef(style.__ob__) vnode.data.normalizedStyle = isDef(style.__ob__)
? extend({}, style) ? extend({}, style)

2
src/platforms/weex/entry-framework.js

@ -437,7 +437,7 @@ function callFunction (globalObjects, body) {
* This function helps speed up bundle compiling. Normally, the V8 * This function helps speed up bundle compiling. Normally, the V8
* engine needs to download, parse, and compile a bundle on every * engine needs to download, parse, and compile a bundle on every
* visit. If 'compileBundle()' is available on native side, * 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 {object} globalObjects
* @param {string} body * @param {string} body
* @return {boolean} * @return {boolean}

2
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) // Elements that you can, intentionally, leave open (and which close themselves)
// more flexable than web // more flexible than web
export const canBeLeftOpenTag = makeMap( export const canBeLeftOpenTag = makeMap(
'web,spinner,switch,video,textarea,canvas,' + 'web,spinner,switch,video,textarea,canvas,' +
'indicator,marquee,countdown', 'indicator,marquee,countdown',

4
src/server/template-renderer/index.js

@ -60,7 +60,7 @@ export default class TemplateRenderer {
if (options.clientManifest) { if (options.clientManifest) {
const clientManifest = this.clientManifest = options.clientManifest const clientManifest = this.clientManifest = options.clientManifest
this.publicPath = clientManifest.publicPath.replace(/\/$/, '') this.publicPath = clientManifest.publicPath.replace(/\/$/, '')
// preload/prefetch drectives // preload/prefetch directives
this.preloadFiles = clientManifest.initial this.preloadFiles = clientManifest.initial
this.prefetchFiles = clientManifest.async this.prefetchFiles = clientManifest.async
// initial async chunk mapping // initial async chunk mapping
@ -242,7 +242,7 @@ function getPreloadType (ext: string): string {
} else if (/woff2?|ttf|otf|eot/.test(ext)) { } else if (/woff2?|ttf|otf|eot/.test(ext)) {
return 'font' return 'font'
} else { } else {
// not exhausting all possbilities here, but above covers common cases // not exhausting all possibilities here, but above covers common cases
return '' return ''
} }
} }

4
test/ssr/compile-with-webpack.js

@ -1,6 +1,6 @@
import path from 'path' import path from 'path'
import webpack from 'webpack' import webpack from 'webpack'
import MemoeryFS from 'memory-fs' import MemoryFS from 'memory-fs'
export function compileWithWebpack (file, extraConfig, cb) { export function compileWithWebpack (file, extraConfig, cb) {
const config = Object.assign({ const config = Object.assign({
@ -27,7 +27,7 @@ export function compileWithWebpack (file, extraConfig, cb) {
}, extraConfig) }, extraConfig)
const compiler = webpack(config) const compiler = webpack(config)
const fs = new MemoeryFS() const fs = new MemoryFS()
compiler.outputFileSystem = fs compiler.outputFileSystem = fs
compiler.run((err, stats) => { compiler.run((err, stats) => {

2
test/ssr/ssr-string.spec.js

@ -805,7 +805,7 @@ describe('SSR: renderToString', () => {
expect(vm.a).toBe(func) expect(vm.a).toBe(func)
}) })
it('should prevent xss in attribtues', done => { it('should prevent xss in attributes', done => {
renderVmWithOptions({ renderVmWithOptions({
data: { data: {
xss: '"><script>alert(1)</script>' xss: '"><script>alert(1)</script>'

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

@ -661,7 +661,7 @@ describe('Component slot', () => {
}).then(done) }).then(done)
}) })
// Github issue #5888 // GitHub issue #5888
it('should resolve correctly slot with keep-alive', () => { it('should resolve correctly slot with keep-alive', () => {
const vm = new Vue({ const vm = new Vue({
template: ` template: `

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

@ -2,7 +2,7 @@ import Vue from 'vue'
import { looseEqual } from 'shared/util' import { looseEqual } from 'shared/util'
// Android 4.4 Chrome 30 has the bug that a multi-select option cannot be // 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 () { function hasMultiSelectBug () {
var s = document.createElement('select') var s = document.createElement('select')
s.setAttribute('multiple', '') s.setAttribute('multiple', '')

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

@ -497,7 +497,7 @@ describe('Directive v-on', () => {
}).not.toThrow() }).not.toThrow()
}) })
// Github Issue #5046 // GitHub Issue #5046
it('should support keyboard modifier', () => { it('should support keyboard modifier', () => {
const spyLeft = jasmine.createSpy() const spyLeft = jasmine.createSpy()
const spyRight = 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', () => { it('should only prevent when match keycode', () => {
let prevented = false let prevented = false
vm = new Vue({ vm = new Vue({
@ -652,7 +652,7 @@ describe('Directive v-on', () => {
expect(mouseup.calls.count()).toBe(1) 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 click = jasmine.createSpy('click')
const mouseup = jasmine.createSpy('mouseup') const mouseup = jasmine.createSpy('mouseup')
const mousedown = jasmine.createSpy('mousedown') const mousedown = jasmine.createSpy('mousedown')

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

@ -34,7 +34,7 @@ describe('Global API: use', () => {
expect(Ctor.options.directives['plugin-test']).toBe(def) expect(Ctor.options.directives['plugin-test']).toBe(def)
}) })
// Github issue #5970 // GitHub issue #5970
it('should work on multi version', () => { it('should work on multi version', () => {
const Ctor1 = Vue.extend({}) const Ctor1 = Vue.extend({})
const Ctor2 = Vue.extend({}) const Ctor2 = Vue.extend({})

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

@ -108,7 +108,7 @@ describe('Instance methods data', () => {
expect(spy).toHaveBeenCalledWith(1) expect(spy).toHaveBeenCalledWith(1)
}) })
it('warn expresssion', () => { it('warn expression', () => {
vm.$watch('a + b', spy) vm.$watch('a + b', spy)
expect('Watcher only accepts simple dot-delimited paths').toHaveBeenWarned() expect('Watcher only accepts simple dot-delimited paths').toHaveBeenWarned()
}) })

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

@ -145,7 +145,7 @@ describe('Options provide/inject', () => {
expect(child.baz).toBe(3) expect(child.baz).toBe(3)
}) })
// Github issue #5194 // GitHub issue #5194
it('should work with functional', () => { it('should work with functional', () => {
new Vue({ new Vue({
template: `<child/>`, template: `<child/>`,
@ -187,7 +187,7 @@ describe('Options provide/inject', () => {
}) })
} }
// Github issue #5223 // GitHub issue #5223
it('should work with reactive array', done => { it('should work with reactive array', done => {
const vm = new Vue({ const vm = new Vue({
template: `<div><child></child></div>`, template: `<div><child></child></div>`,
@ -362,7 +362,7 @@ describe('Options provide/inject', () => {
expect(`Injection "baz" not found`).not.toHaveBeenWarned() expect(`Injection "baz" not found`).not.toHaveBeenWarned()
}) })
// Github issue #6008 // GitHub issue #6008
it('should merge provide from mixins (objects)', () => { it('should merge provide from mixins (objects)', () => {
const mixinA = { provide: { foo: 'foo' }} const mixinA = { provide: { foo: 'foo' }}
const mixinB = { provide: { bar: 'bar' }} const mixinB = { provide: { bar: 'bar' }}

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

@ -294,7 +294,7 @@ if (!isIE9) {
expect('<transition-group> children must be keyed: <div>').toHaveBeenWarned() expect('<transition-group> children must be keyed: <div>').toHaveBeenWarned()
}) })
// Github issue #6006 // GitHub issue #6006
it('should work with dynamic name', done => { it('should work with dynamic name', done => {
const vm = new Vue({ const vm = new Vue({
template: ` template: `

2
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 = { options.webpack.module.rules[0].options = {
plugins: [['istanbul', { plugins: [['istanbul', {
exclude: [ exclude: [

2
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', () => { it('generate events with generic modifiers and keycode correct order', () => {
assertCodegen( assertCodegen(
'<input @keydown.enter.prevent="onInput">', '<input @keydown.enter.prevent="onInput">',

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

@ -147,7 +147,7 @@ describe('Scheduler', () => {
}).then(done) }).then(done)
}) })
// Github issue #5191 // GitHub issue #5191
it('emit should work when updated hook called', done => { it('emit should work when updated hook called', done => {
const el = document.createElement('div') const el = document.createElement('div')
const vm = new Vue({ const vm = new Vue({

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

@ -14,7 +14,7 @@ describe('vdom directive module', () => {
const vnode1 = new VNode('div', {}, [ const vnode1 = new VNode('div', {}, [
new VNode('p', { new VNode('p', {
directives: [{ directives: [{
name: 'directive1', value: 'hello', arg: 'arg1', modifiers: { modifire1: true } name: 'directive1', value: 'hello', arg: 'arg1', modifiers: { modifier1: true }
}] }]
}, undefined, 'hello world', undefined, vm) }, undefined, 'hello world', undefined, vm)
]) ])
@ -24,7 +24,7 @@ describe('vdom directive module', () => {
const vnode2 = new VNode('div', {}, [ const vnode2 = new VNode('div', {}, [
new VNode('p', { new VNode('p', {
directives: [{ directives: [{
name: 'directive1', value: 'world', arg: 'arg1', modifiers: { modifire1: true } name: 'directive1', value: 'world', arg: 'arg1', modifiers: { modifier1: true }
}] }]
}, undefined, 'hello world', undefined, vm) }, undefined, 'hello world', undefined, vm)
]) ])

Loading…
Cancel
Save