From f4fcd641f666fb86539d0fb7f74df388f2c00a92 Mon Sep 17 00:00:00 2001 From: kazuya kawaguchi Date: Tue, 23 Feb 2016 00:44:14 +0900 Subject: [PATCH] feat(reset): change meta method name BREAKING CHANGE: `$validatorReset` to `$resetValidation` --- README.md | 6 +++--- example/reset/index.html | 6 +++--- src/validator.js | 4 ++-- test/specs/reset.js | 8 ++++---- 4 files changed, 12 insertions(+), 12 deletions(-) diff --git a/README.md b/README.md index 35abdbe..406b554 100644 --- a/README.md +++ b/README.md @@ -372,7 +372,7 @@ setTimeout(function () { # Reset validation results -You can reset the validation results with `$validatorReset()` Vue instance meta method that defined with validator dynamically. the below the exmpale: +You can reset the validation results with `$resetValidation()` Vue instance meta method that defined with validator dynamically. the below the exmpale: ```html
@@ -391,7 +391,7 @@ You can reset the validation results with `$validatorReset()` Vue instance meta

Your comment is too long.

- +
{{ $validation1 | json }}
@@ -403,7 +403,7 @@ new Vue({ el: '#app', methods: { onReset: function () { - this.$validatorReset() + this.$resetValidation() } } }) diff --git a/example/reset/index.html b/example/reset/index.html index 6fb5936..10b202a 100644 --- a/example/reset/index.html +++ b/example/reset/index.html @@ -2,7 +2,7 @@ - validation result reset example + validation result resetting example