Skip to content
This repository was archived by the owner on Dec 25, 2017. It is now read-only.

Commit

Permalink
✨ release(patch): v2.1.3
Browse files Browse the repository at this point in the history
  • Loading branch information
kazupon committed May 29, 2016
1 parent 312a000 commit 4214870
Show file tree
Hide file tree
Showing 8 changed files with 35 additions and 19 deletions.
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
<a name="2.1.3"></a>
## [2.1.3](https://github.com/vuejs/vue-validator/compare/v2.1.2...v2.1.3) (2016-05-29)


### :bug: Bug Fixes

* **validate:** fix multi element fragment bug ([312a000](https://github.com/vuejs/vue-validator/commit/312a000)), closes [#243](https://github.com/vuejs/vue-validator/issues/243)



<a name="2.1.2"></a>
## [2.1.2](https://github.com/vuejs/vue-validator/compare/v2.1.1...v2.1.2) (2016-05-21)

Expand Down
15 changes: 9 additions & 6 deletions dist/vue-validator.common.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* vue-validator v2.1.2
* vue-validator v2.1.3
* (c) 2016 kazuya kawaguchi
* Released under the MIT License.
*/
Expand Down Expand Up @@ -650,7 +650,7 @@ function Validate (Vue) {

this.field = camelize(this.arg ? this.arg : params.field);

this.validation = validator.manageValidation(this.field, model, this.vm, this.frag.node, this._scope, filters, params.initial, this.isDetectBlur(params.detectBlur), this.isDetectChange(params.detectChange));
this.validation = validator.manageValidation(this.field, model, this.vm, this.getElementFrom(this.frag), this._scope, filters, params.initial, this.isDetectBlur(params.detectBlur), this.isDetectChange(params.detectChange));

isPlainObject(params.classes) && this.validation.setValidationClasses(params.classes);

Expand All @@ -661,7 +661,7 @@ function Validate (Vue) {
listen: function listen() {
var model = this.model;
var validation = this.validation;
var el = this.frag.node;
var el = this.getElementFrom(this.frag);

this.onBlur = bind(validation.listener, validation);
on(el, 'blur', this.onBlur);
Expand All @@ -684,7 +684,7 @@ function Validate (Vue) {
}
},
unlisten: function unlisten() {
var el = this.frag.node;
var el = this.getElementFrom(this.frag);

if (this.onInput) {
off(el, 'input', this.onInput);
Expand All @@ -708,7 +708,7 @@ function Validate (Vue) {
},
teardownValidate: function teardownValidate() {
if (this.validator && this.validation) {
var el = this.frag.node;
var el = this.getElementFrom(this.frag);

this.params.group && this.validator.removeGroupValidation(this.params.group, this.field);

Expand Down Expand Up @@ -781,6 +781,9 @@ function Validate (Vue) {
}
}
return ret;
},
getElementFrom: function getElementFrom(frag) {
return frag.single ? frag.node : frag.node.nextSibling;
}
});
}
Expand Down Expand Up @@ -2587,7 +2590,7 @@ function plugin(Vue) {
Validate(Vue);
}

plugin.version = '2.1.2';
plugin.version = '2.1.3';

if (typeof window !== 'undefined' && window.Vue) {
window.Vue.use(plugin);
Expand Down
15 changes: 9 additions & 6 deletions dist/vue-validator.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* vue-validator v2.1.2
* vue-validator v2.1.3
* (c) 2016 kazuya kawaguchi
* Released under the MIT License.
*/
Expand Down Expand Up @@ -654,7 +654,7 @@ var validators = Object.freeze({

this.field = camelize(this.arg ? this.arg : params.field);

this.validation = validator.manageValidation(this.field, model, this.vm, this.frag.node, this._scope, filters, params.initial, this.isDetectBlur(params.detectBlur), this.isDetectChange(params.detectChange));
this.validation = validator.manageValidation(this.field, model, this.vm, this.getElementFrom(this.frag), this._scope, filters, params.initial, this.isDetectBlur(params.detectBlur), this.isDetectChange(params.detectChange));

isPlainObject(params.classes) && this.validation.setValidationClasses(params.classes);

Expand All @@ -665,7 +665,7 @@ var validators = Object.freeze({
listen: function listen() {
var model = this.model;
var validation = this.validation;
var el = this.frag.node;
var el = this.getElementFrom(this.frag);

this.onBlur = bind(validation.listener, validation);
on(el, 'blur', this.onBlur);
Expand All @@ -688,7 +688,7 @@ var validators = Object.freeze({
}
},
unlisten: function unlisten() {
var el = this.frag.node;
var el = this.getElementFrom(this.frag);

if (this.onInput) {
off(el, 'input', this.onInput);
Expand All @@ -712,7 +712,7 @@ var validators = Object.freeze({
},
teardownValidate: function teardownValidate() {
if (this.validator && this.validation) {
var el = this.frag.node;
var el = this.getElementFrom(this.frag);

this.params.group && this.validator.removeGroupValidation(this.params.group, this.field);

Expand Down Expand Up @@ -785,6 +785,9 @@ var validators = Object.freeze({
}
}
return ret;
},
getElementFrom: function getElementFrom(frag) {
return frag.single ? frag.node : frag.node.nextSibling;
}
});
}
Expand Down Expand Up @@ -2591,7 +2594,7 @@ var validators = Object.freeze({
Validate(Vue);
}

plugin.version = '2.1.2';
plugin.version = '2.1.3';

if (typeof window !== 'undefined' && window.Vue) {
window.Vue.use(plugin);
Expand Down
6 changes: 3 additions & 3 deletions dist/vue-validator.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/en/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ See [dist folder](https://github.com/vuejs/vue-validator/tree/dev/dist). Note th
### jsdelivr

```html
<script src="https://cdn.jsdelivr.net/vue.validator/2.1.2/vue-validator.min.js"></script>
<script src="https://cdn.jsdelivr.net/vue.validator/2.1.3/vue-validator.min.js"></script>
```

## NPM
Expand Down
2 changes: 1 addition & 1 deletion docs/zh-cn/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
### jsdelivr

```html
<script src="https://cdn.jsdelivr.net/vue.validator/2.1.2/vue-validator.min.js"></script>
<script src="https://cdn.jsdelivr.net/vue.validator/2.1.3/vue-validator.min.js"></script>
```

## NPM
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "vue-validator",
"description": "Validator component for Vue.js",
"version": "2.1.2",
"version": "2.1.3",
"author": {
"name": "kazuya kawaguchi",
"email": "[email protected]"
Expand Down
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ function plugin (Vue, options = {}) {
Validate(Vue)
}

plugin.version = '2.1.2'
plugin.version = '2.1.3'

export default plugin

Expand Down

0 comments on commit 4214870

Please sign in to comment.