Skip to content

Commit be9ac62

Browse files
S-YOUposva
authored andcommitted
chore(src): fix some typos (vuejs#5104)
1 parent 61930e0 commit be9ac62

File tree

6 files changed

+14
-14
lines changed

6 files changed

+14
-14
lines changed

src/core/observer/dep.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ export default class Dep {
3434
}
3535

3636
notify () {
37-
// stablize the subscriber list first
37+
// stabilize the subscriber list first
3838
const subs = this.subs.slice()
3939
for (let i = 0, l = subs.length; i < l; i++) {
4040
subs[i].update()

src/platforms/web/runtime/components/transition-group.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
// we force transition-group to update its children into two passes:
99
// in the first pass, we remove all nodes that need to be removed,
1010
// triggering their leaving transition; in the second pass, we insert/move
11-
// into the final disired state. This way in the second pass removed
11+
// into the final desired state. This way in the second pass removed
1212
// nodes will remain where they should be.
1313

1414
import { warn, extend } from 'core/util/index'

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ export function enter (vnode: VNodeWithData, toggleDisplay: ?() => void) {
103103
}
104104

105105
const expectsCSS = css !== false && !isIE9
106-
const userWantsControl = getHookAgumentsLength(enterHook)
106+
const userWantsControl = getHookArgumentsLength(enterHook)
107107

108108
const cb = el._enterCb = once(() => {
109109
if (expectsCSS) {
@@ -197,7 +197,7 @@ export function leave (vnode: VNodeWithData, rm: Function) {
197197
} = data
198198

199199
const expectsCSS = css !== false && !isIE9
200-
const userWantsControl = getHookAgumentsLength(leave)
200+
const userWantsControl = getHookArgumentsLength(leave)
201201

202202
const explicitLeaveDuration: any = toNumber(
203203
isObject(duration)
@@ -294,12 +294,12 @@ function isValidDuration (val) {
294294
* - a wrapped component method (check ._length)
295295
* - a plain function (.length)
296296
*/
297-
function getHookAgumentsLength (fn: Function): boolean {
297+
function getHookArgumentsLength (fn: Function): boolean {
298298
if (!fn) return false
299299
const invokerFns = fn.fns
300300
if (invokerFns) {
301301
// invoker
302-
return getHookAgumentsLength(
302+
return getHookArgumentsLength(
303303
Array.isArray(invokerFns)
304304
? invokerFns[0]
305305
: invokerFns

src/platforms/web/runtime/transition-util.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,9 +115,9 @@ export function getTransitionInfo (el: Element, expectedType?: ?string): {
115115
hasTransform: boolean;
116116
} {
117117
const styles: any = window.getComputedStyle(el)
118-
const transitioneDelays: Array<string> = styles[transitionProp + 'Delay'].split(', ')
118+
const transitionDelays: Array<string> = styles[transitionProp + 'Delay'].split(', ')
119119
const transitionDurations: Array<string> = styles[transitionProp + 'Duration'].split(', ')
120-
const transitionTimeout: number = getTimeout(transitioneDelays, transitionDurations)
120+
const transitionTimeout: number = getTimeout(transitionDelays, transitionDurations)
121121
const animationDelays: Array<string> = styles[animationProp + 'Delay'].split(', ')
122122
const animationDurations: Array<string> = styles[animationProp + 'Duration'].split(', ')
123123
const animationTimeout: number = getTimeout(animationDelays, animationDurations)

src/platforms/weex/framework.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ export function createInstance (
9292
}
9393
Object.freeze(weexInstanceVar)
9494

95-
// Each instance has a independent `Vue` mdoule instance
95+
// Each instance has a independent `Vue` module instance
9696
const Vue = instance.Vue = createVueModuleInstance(instanceId, moduleGetter)
9797

9898
// The function which create a closure the JS Bundle will run in.
@@ -286,7 +286,7 @@ function createVueModuleInstance (instanceId, moduleGetter) {
286286

287287
/**
288288
* Generate native module getter. Each native module has several
289-
* methods to call. And all the hebaviors is instance-related. So
289+
* methods to call. And all the behaviors is instance-related. So
290290
* this getter will return a set of methods which additionally
291291
* send current instance id to native when called. Also the args
292292
* will be normalized into "safe" value. For example function arg
@@ -314,7 +314,7 @@ function genModuleGetter (instanceId) {
314314
/**
315315
* Generate HTML5 Timer APIs. An important point is that the callback
316316
* will be converted into callback id when sent to native. So the
317-
* framework can make sure no side effect of the callabck happened after
317+
* framework can make sure no side effect of the callback happened after
318318
* an instance destroyed.
319319
* @param {[type]} instanceId [description]
320320
* @param {[type]} moduleGetter [description]

src/server/create-bundle-runner.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ function createContext (context) {
2222

2323
function compileModule (files, basedir) {
2424
const compiledScripts = {}
25-
const reoslvedModules = {}
25+
const resolvedModules = {}
2626

2727
function getCompiledScript (filename) {
2828
if (compiledScripts[filename]) {
@@ -52,8 +52,8 @@ function compileModule (files, basedir) {
5252
return evaluateModule(file, context, evaluatedModules)
5353
} else if (basedir) {
5454
return require(
55-
reoslvedModules[file] ||
56-
(reoslvedModules[file] = resolve.sync(file, { basedir }))
55+
resolvedModules[file] ||
56+
(resolvedModules[file] = resolve.sync(file, { basedir }))
5757
)
5858
} else {
5959
return require(file)

0 commit comments

Comments
 (0)