Просмотр исходного кода

Fix Spelling (#3496)

* Fix Spelling

* Fix other instances.
Brandon Surowiec 9 лет назад
Родитель
Сommit
0f8ad06b2c

+ 1 - 1
packages/vue-server-renderer/build.js

@@ -3459,7 +3459,7 @@ function parse(template, options) {
 
       if (process.env.VUE_ENV !== 'server' && isForbiddenTag(element)) {
         element.forbidden = true;
-        process.env.NODE_ENV !== 'production' && warn$1('Templates should only be responsbile for mapping the state to the ' + 'UI. Avoid placing tags with side-effects in your templates, such as ' + ('<' + tag + '>.'));
+        process.env.NODE_ENV !== 'production' && warn$1('Templates should only be responsible for mapping the state to the ' + 'UI. Avoid placing tags with side-effects in your templates, such as ' + ('<' + tag + '>.'));
       }
 
       // apply pre-transforms

+ 1 - 1
packages/vue-template-compiler/build.js

@@ -3241,7 +3241,7 @@ function parse(template, options) {
 
       if (process.env.VUE_ENV !== 'server' && isForbiddenTag(element)) {
         element.forbidden = true;
-        process.env.NODE_ENV !== 'production' && warn$1('Templates should only be responsbile for mapping the state to the ' + 'UI. Avoid placing tags with side-effects in your templates, such as ' + ('<' + tag + '>.'));
+        process.env.NODE_ENV !== 'production' && warn$1('Templates should only be responsible for mapping the state to the ' + 'UI. Avoid placing tags with side-effects in your templates, such as ' + ('<' + tag + '>.'));
       }
 
       // apply pre-transforms

+ 1 - 1
src/compiler/parser/index.js

@@ -90,7 +90,7 @@ export function parse (
       if (process.env.VUE_ENV !== 'server' && isForbiddenTag(element)) {
         element.forbidden = true
         process.env.NODE_ENV !== 'production' && warn(
-          'Templates should only be responsbile for mapping the state to the ' +
+          'Templates should only be responsible for mapping the state to the ' +
           'UI. Avoid placing tags with side-effects in your templates, such as ' +
           `<${tag}>.`
         )

+ 2 - 2
test/unit/modules/compiler/parser.spec.js

@@ -61,14 +61,14 @@ describe('parser', () => {
     expect(styleAst.plain).toBe(true)
     expect(styleAst.forbidden).toBe(true)
     expect(styleAst.children[0].text).toBe('error { color: red; }')
-    expect('Templates should only be responsbile for mapping the state').toHaveBeenWarned()
+    expect('Templates should only be responsible for mapping the state').toHaveBeenWarned()
     // script
     const scriptAst = parse('<script type="text/javascript">alert("hello world!")</script>', baseOptions)
     expect(scriptAst.tag).toBe('script')
     expect(scriptAst.plain).toBe(false)
     expect(scriptAst.forbidden).toBe(true)
     expect(scriptAst.children[0].text).toBe('alert("hello world!")')
-    expect('Templates should only be responsbile for mapping the state').toHaveBeenWarned()
+    expect('Templates should only be responsible for mapping the state').toHaveBeenWarned()
   })
 
   it('not contain root element', () => {