Skip to content

Commit 35a2480

Browse files
committed
more tweaks
1 parent 9fe956e commit 35a2480

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

source/api/directives.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ Alternatively, you can bind the directive directly to an Object. The keys of the
6161

6262
Internally, {{ Mustache }} interpolations inside attributes are compiled into computed `v-attr` directives.
6363

64-
Starting in 0.12.8, when used on input elements' `value` attribute, `v-attr` also sets the corresponding `value` property on the element. For example, `<input value="{% raw %}{{val}}{% endraw %}">` will not only update the attribute, but also set the underlying JavaScript property.
64+
Starting in 0.12.9, when used on input elements' `value` attribute, `v-attr` now updates the corresponding `value` property on the element instead of the attribute. For example, `<input value="{% raw %}{{val}}{% endraw %}">` will update the underlying JavaScript property instead of the attribute.
6565

6666
<p class="tip">You should use `v-attr` instead of mustache binding when setting the `src` attribute on `<img>` elements. Your templates are parsed by the browser before being compiled by Vue.js, so the mustache binding will cause a 404 when the browser tries to fetch it as the image's URL.</p>
6767

@@ -199,7 +199,7 @@ For detailed examples, see [Displaying a List](/guide/list.html).
199199

200200
## Literal Directives
201201

202-
> Literal directives treat their attribute value as a plain string; they do not attempt to bind themselves to anything. All they do is executing the `bind()` function with the string value once. Literal directives accept mustache expressions inside their value, but these expressions will be evaluated only once on first compile and do not react to data changes.
202+
> Literal directives treat their attribute value as a plain string; they do not attempt to bind themselves to anything. All they do is executing the `bind()` function once. Literal directives can also accept mustache expressions inside their value - please refer to [Dynamic Literal](/guide/custom-directive.html#Dynamic_Literal) for more details.
203203
204204
### v-transition
205205

source/api/global-api.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ Register or retrieve a global component. For more details see [Component System]
134134
- **id** `String`
135135
- **definition** `Object` *optional*
136136

137-
Register or retrieve a global JavaScript transition effect definition. For more details see the guide for [JavaScript Transitions](/guide/transitions.html#JavaScript_Functions).
137+
Register or retrieve a global JavaScript transition effect definition. For more details see the guide for [JavaScript Transitions](/guide/transitions.html#JavaScript_Only_Transitions).
138138

139139
### Vue.partial( id, [partial] )
140140

source/api/instance-methods.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ Set a data value on the Vue instance given a valid keypath. If the path doesn't
7878
- **keypath** `String`
7979
- **value** `*`
8080

81-
Add a root level property to the Vue instance (and also its `$data`). Due to the limitations of ES5, Vue cannot detect properties directly added to or deleted from an Object, so use this method and `vm.$delete` when you need to do so. Additionally, all observed objects are augmented with these two methods too.
81+
Add a root level property to the Vue instance (and also its `$data`). Due to the limitations of ES5, Vue cannot detect properties directly added to or deleted from an Object, so use this method and `vm.$delete` when you need to do so. Make sure to use this only when necessary, because this method forces a dirty check of all watchers in the current vm.
8282

8383
### vm.$delete( keypath )
8484

@@ -214,9 +214,9 @@ If no argument is provided, the template will be created as an out-of-document e
214214

215215
### vm.$destroy( [remove] )
216216

217-
- **remove** `Boolean` *optional*
217+
- **remove** `Boolean` *optional* (Default: `false`)
218218

219-
Completely destroy a vm. Clean up its connections with other existing vms, unbind all its directives and remove its `$el` from the DOM. Also, all `$on` and `$watch` listeners will be automatically removed.
219+
Completely destroy a vm. Clean up its connections with other existing vms, unbind all its directives and optionally remove its `$el` from the DOM. Also, all `$on` and `$watch` listeners will be automatically removed.
220220

221221
### vm.$compile( element )
222222

source/api/instance-properties.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ order: 3
88
- **Type:** `HTMLElement`
99
- **Read only**
1010

11-
The DOM element that the Vue instance is managing.
11+
The DOM element that the Vue instance is managing. Note that for [Fragment Instances](/guide/best-practices.html#Fragment_Instance), `vm.$el` will return an anchor node that indicates the starting position of the fragment.
1212

1313
### vm.$data
1414

0 commit comments

Comments
 (0)