Skip to content

Fix typos #2224

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

Merged
merged 1 commit into from
Jul 5, 2019
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.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/v2/api/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -1534,7 +1534,7 @@ type: api
// function
vm.$watch(
function () {
// everytime the expression `this.a + this.b` yields a different result,
// every time the expression `this.a + this.b` yields a different result,
// the handler will be called. It's as if we were watching a computed
// property without defining the computed property itself
return this.a + this.b
Expand Down Expand Up @@ -1576,7 +1576,7 @@ type: api
// `callback` is fired immediately with current value of `a`
```

Note that with `immediate` option you won't be able to unwatch the given property on the first callback call.
Note that with `immediate` option you won't be able to unwatch the given property on the first callback call.

``` js
// This will cause an error
Expand All @@ -1589,7 +1589,7 @@ type: api
{ immediate: true }
)
```

If you still want to call an unwatch function inside the callback, you should check its availability first:

``` js
Expand Down
2 changes: 1 addition & 1 deletion src/v2/cookbook/dockerize-vuejs-app.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ EXPOSE 8080
CMD [ "http-server", "dist" ]
```

It may seem reduntant to first copy `package.json` and `package-lock.json` and then all project files and folders in two separate steps but there is actually [a very good reason for that](http://bitjudo.com/blog/2014/03/13/building-efficient-dockerfiles-node-dot-js/) (spoiler: it allows us to take advantage of cached Docker layers).
It may seem redundant to first copy `package.json` and `package-lock.json` and then all project files and folders in two separate steps but there is actually [a very good reason for that](http://bitjudo.com/blog/2014/03/13/building-efficient-dockerfiles-node-dot-js/) (spoiler: it allows us to take advantage of cached Docker layers).

Now let's build the Docker image of our Vue.js app:

Expand Down
2 changes: 1 addition & 1 deletion themes/vue/source/js/vue.js
Original file line number Diff line number Diff line change
Expand Up @@ -8749,7 +8749,7 @@ var startTagOpen = new RegExp(("^<" + qnameCapture));
var startTagClose = /^\s*(\/?)>/;
var endTag = new RegExp(("^<\\/" + qnameCapture + "[^>]*>"));
var doctype = /^<!DOCTYPE [^>]+>/i;
// #7298: escape - to avoid being pased as HTML comment when inlined in page
// #7298: escape - to avoid being passed as HTML comment when inlined in page
var comment = /^<!\--/;
var conditionalComment = /^<!\[/;

Expand Down