Josh Soref пре 8 година
родитељ
комит
f477ecdbbb

+ 1 - 1
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();

+ 1 - 1
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',

+ 1 - 1
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

+ 1 - 1
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)

+ 1 - 1
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}

+ 1 - 1
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',

+ 2 - 2
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 ''
   }
 }

+ 2 - 2
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) => {

+ 1 - 1
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: '"><script>alert(1)</script>'

+ 1 - 1
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: `

+ 1 - 1
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', '')

+ 3 - 3
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')

+ 1 - 1
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({})

+ 1 - 1
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()
     })

+ 3 - 3
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: `<child/>`,
@@ -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: `<div><child></child></div>`,
@@ -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' }}

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

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

+ 1 - 1
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: [

+ 1 - 1
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(
       '<input @keydown.enter.prevent="onInput">',

+ 1 - 1
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({

+ 2 - 2
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)
     ])