Skip to content

Commit 9fe956e

Browse files
committed
small tweaks
1 parent 8b9fb38 commit 9fe956e

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

source/guide/computed.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,4 @@ A computed property is essentially a property defined with getter/setter functio
4848

4949
Before 0.12.8, computed properties behave just like getters - every time you access it, the getter function is re-evaluated. In 0.12.8 this has been improved - computed properties are cached and lazily re-evaluated only when necessary.
5050

51-
<p class="tip">Before Vue.js 0.11 there used to be a dependency collection gotcha which requires users to explicitly list dependencies when conditional statements are involved. Starting with 0.11 it is no longer necessary to do so.</p>
52-
5351
Next, let's learn about how to [write a custom directive](/guide/custom-directive.html).

source/guide/events.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,13 @@ new Vue({
2929

3030
## Invoke Handler with Expression
3131

32-
`targetVM` could be useful when `v-on` is used with `v-repeat`, since the latter creates a lot of child ViewModels. However, it is often more convenient to use an invocation expression passing in `this`, which equals the current context ViewModel:
32+
`targetVM` could be useful when `v-on` is used with `v-repeat`, since the latter creates a lot of child ViewModels. However, it is often more convenient and explicit to use an invocation expression passing in the current alias, which equals the current data object being interated on:
3333

3434
``` html
3535
<ul id="list">
36-
<li v-repeat="items" v-on="click: toggle(this)">{{text}}</li>
36+
<li v-repeat="item in items" v-on="click: toggle(item)">
37+
{{text}}
38+
</li>
3739
</ul>
3840
```
3941

0 commit comments

Comments
 (0)