From 3b8ede292d12c0bfedc274e3b0071b0956c1b2bc Mon Sep 17 00:00:00 2001 From: oohira Date: Tue, 29 Jan 2019 22:16:40 +0900 Subject: [PATCH] Translate: Add comments about $watch behavior with a function #1396 * translate vuejs/vuejs.org@4b816e2 --- src/v2/api/index.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/v2/api/index.md b/src/v2/api/index.md index 667a5181a..bebd1409d 100644 --- a/src/v2/api/index.md +++ b/src/v2/api/index.md @@ -1,7 +1,7 @@ --- title: API type: api -updated: 2018-12-26 +updated: 2019-01-29 --- ## グローバル設定 @@ -1488,9 +1488,9 @@ updated: 2018-12-26 // 関数 vm.$watch( function () { - // everytime 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 + // 式 `this.a + this.b` が異なる結果を返すたびに、ハンドラが呼び出されます。 + // これは、算出プロパティを定義することなしに、その算出プロパティを監視している + // ようなものです。 return this.a + this.b }, function (newVal, oldVal) {