Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Spelling #3496

Merged
merged 2 commits into from
Aug 22, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/vue-server-renderer/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion packages/vue-template-compiler/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/compiler/parser/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}>.`
)
Expand Down
4 changes: 2 additions & 2 deletions test/unit/modules/compiler/parser.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -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', () => {
Expand Down