Browse Source

chore: spelling and grammar (#11481)

Co-authored-by: Shaun Case <shaunc@aja.com>
dev
warmsocks 4 years ago
committed by GitHub
parent
commit
8ead9d2a0d
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      flow/weex.js
  2. 2
      src/compiler/parser/index.js
  3. 6
      test/unit/features/directives/on.spec.js
  4. 2
      types/umd.d.ts

2
flow/weex.js

@ -28,7 +28,7 @@ declare type WeexEnvironment = {
appName: string; // mobile app name or browser name appName: string; // mobile app name or browser name
appVersion: string; appVersion: string;
// informations of current running device // information about current running device
deviceModel: string; // phone device model deviceModel: string; // phone device model
deviceWidth: number; deviceWidth: number;
deviceHeight: number; deviceHeight: number;

2
src/compiler/parser/index.js

@ -380,7 +380,7 @@ export function parse (
} }
}, },
comment (text: string, start, end) { comment (text: string, start, end) {
// adding anyting as a sibling to the root node is forbidden // adding anything as a sibling to the root node is forbidden
// comments should still be allowed, but ignored // comments should still be allowed, but ignored
if (currentParent) { if (currentParent) {
const child: ASTText = { const child: ASTText = {

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

@ -280,7 +280,7 @@ describe('Directive v-on', () => {
expect(spy.calls.count()).toBe(1) expect(spy.calls.count()).toBe(1)
}) })
it('should support system modifers with exact', () => { it('should support system modifiers with exact', () => {
vm = new Vue({ vm = new Vue({
el, el,
template: ` template: `
@ -405,7 +405,7 @@ describe('Directive v-on', () => {
Vue.config.keyCodes = Object.create(null) Vue.config.keyCodes = Object.create(null)
}) })
it('should override build-in keyCode', () => { it('should override built-in keyCode', () => {
Vue.config.keyCodes.up = [1, 87] Vue.config.keyCodes.up = [1, 87]
vm = new Vue({ vm = new Vue({
el, el,
@ -420,7 +420,7 @@ describe('Directive v-on', () => {
e.keyCode = 1 e.keyCode = 1
}) })
expect(spy).toHaveBeenCalledTimes(2) expect(spy).toHaveBeenCalledTimes(2)
// should not affect build-in down keycode // should not affect built-in down keycode
triggerEvent(vm.$el, 'keyup', e => { triggerEvent(vm.$el, 'keyup', e => {
e.keyCode = 40 e.keyCode = 40
}) })

2
types/umd.d.ts

@ -7,7 +7,7 @@ import {
PropsDefinition PropsDefinition
} from "./options"; } from "./options";
// Expose some types for backword compatibility... // Expose some types for backward compatibility...
declare namespace Vue { declare namespace Vue {
// vue.d.ts // vue.d.ts
export type CreateElement = V.CreateElement; export type CreateElement = V.CreateElement;

Loading…
Cancel
Save