Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 9442324

Browse files
0.10.3
1 parent fd6744e commit 9442324

File tree

6 files changed

+21
-19
lines changed

6 files changed

+21
-19
lines changed

‎perf/todomvc-benchmark/todomvc/vue/bower_components/vue/vue.min.js‎

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎source/api/instance-methods.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,4 +110,4 @@ Remove the vm's `$el` from the DOM.
110110

111111
### vm.$destroy()
112112

113-
Completely destroy a vm. Clean up its connections with other existing vms, unbind all its directives and remove its `$el` from the DOM.
113+
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.

‎source/api/instantiation-options.md‎

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -166,34 +166,36 @@ A hash of HTML attributes to be set on `vm.$el`.
166166
All lifecycle hooks have their `this` context bound to the ViewModel instance they belong to. For `'attached'`, `'detached'`, `'beforeDestroy'`, `'afterDestroy'`, the ViewModel instance will also emit events in the form of `'hook:eventName'`.
167167

168168
### created
169-
169+
170170
- **Type:** `Function`
171171

172-
Called synchronously before the compilation starts. Can be used to attach additional data to be observed on the ViewModel.
172+
Called synchronously before the compilation starts. At this stage, instance properties like `$el`, `$data` are available, but the DOM is in a pre-compile state, and the data has not been observed yet. Usually the created hook is used to attach additional initial states to the ViewModel. Any non-function properties attached to the ViewModel in the created hook will be copied to the data object and observed later.
173+
174+
If you use `$watch` in the created hook, the callback will also be called when the data is freshly observed. If you want to watch for changes only, attach the watcher in the ready hook.
173175

174176
### ready
175177

176178
- **Type:** `Function`
177179

178-
Called synchronously after the compilation has ended and the ViewModel instance is ready.
180+
Called synchronously after the compilation has ended and the ViewModel instance is ready. At this stage, the DOM is fully compiled and the data has been observed, so changing existing data properties will trigger View updates. Additional properties attached to the ViewModel or the data object in the ready hook will **not** be observed.
179181

180182
### attached
181183

182184
- **Type:** `Function`
183185

184-
Called when `vm.$el` is attached to DOM by a VueJS directive. Direct manipulation of `vm.$el` will **not** trigger this hook.
186+
Called when `vm.$el` is attached to DOM by a directive or a VM instance method such as `$appendTo()`. Direct manipulation of `vm.$el` will **not** trigger this hook.
185187

186188
### detached
187189

188190
- **Type:** `Function`
189191

190-
Called when `vm.$el` is removed from the DOM by a VueJS directive. Direct manipulation of `vm.$el` will **not** trigger this hook.
192+
Called when `vm.$el` is removed from the DOM by a directive or a VM instance method. Direct manipulation of `vm.$el` will **not** trigger this hook.
191193

192194
### beforeDestroy
193195

194196
- **Type:** `Function`
195197

196-
Called before a ViewModel is destroyed.
198+
Called before a ViewModel is destroyed. At this stage, the data is still observed, and all bindings and directive instances are still in effect. All child VMs of the current instance are also still active. This hook is mostly used internally but you can use it to clean up things you set up in the created or ready hook. There's no need to turn off `$on` and `$watch` listeners in here because all of them will be automatically turned off during `$destroy`.
197199

198200
### afterDestroy
199201

‎source/guide/installation.md‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
title: Installation
22
type: guide
33
order: 1
4-
vue_version: 0.10.2
5-
dev_size: 118.21
6-
min_size: 39.55
7-
gz_size: 13.43
4+
vue_version: 0.10.3
5+
dev_size: 119.38
6+
min_size: 39.90
7+
gz_size: 13.59
88
---
99

1010
> **Compatibility Note:** Vue.js does not support IE8 and below.
@@ -17,7 +17,7 @@ Simply download and include with a script tag. `Vue` will be registered as a glo
1717

1818
<a class="button" href="https://raw.github.com/yyx990803/vue/v{{vue_version}}/dist/vue.min.js" download>Production Version</a><br><span class="light">{{min_size}}kb minified / {{gz_size}}kb gzipped</span>
1919

20-
Also available on [cdnjs](//cdnjs.cloudflare.com/ajax/libs/vue/{{vue_version}}/vue.min.js) (takes 4 hours to sync so the latest version might not be available yet).
20+
Also available on [cdnjs](//cdnjs.cloudflare.com/ajax/libs/vue/{{vue_version}}/vue.min.js) (takes some time to sync so the latest version might not be available yet).
2121

2222
## Component
2323

‎themes/vue/_config.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
google_analytics: UA-46852172-1
22
root_domain: vuejs.org
3-
vue_version: 0.10.2
3+
vue_version: 0.10.3

‎themes/vue/source/js/vue.min.js‎

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /