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

Commit d2ad88e

Browse files
committed
release(patch): v2.1.1
1 parent f474b90 commit d2ad88e

7 files changed

+28
-22
lines changed

CHANGELOG.md

+8
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
<a name="2.1.1"></a>
2+
## [2.1.1](https://github.com/vuejs/vue-validator/compare/v2.1.0...v2.1.1) (2016-05-02)
3+
4+
### :star: Bug Fixes
5+
6+
* **timing:** fix the initiali timing when use v-model integration ([0579685](https://github.com/vuejs/vue-validator/commit/0579685)), closes [#214](https://github.com/vuejs/vue-validator/issues/214)
7+
8+
19
<a name="2.1.0"></a>
210
# [2.1.0](https://github.com/vuejs/vue-validator/compare/v2.0.2...v2.1.0) (2016-04-30)
311

dist/vue-validator.common.js

+7-8
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* vue-validator v2.1.0
2+
* vue-validator v2.1.1
33
* (c) 2016 kazuya kawaguchi
44
* Released under the MIT License.
55
*/
@@ -429,6 +429,7 @@ var PRIORITY_VALIDATE = 16;
429429
var PRIORITY_VALIDATE_CLASS = 32;
430430
var REGEX_FILTER = /[^|]\|[^|]/;
431431
var REGEX_VALIDATE_DIRECTIVE = /^v-validate(?:$|:(.*)$)/;
432+
var REGEX_EVENT = /^v-on:|^@/;
432433

433434
var classId = 0; // ID for validation class
434435

@@ -833,7 +834,7 @@ var BaseValidation = function () {
833834
return;
834835
}
835836

836-
_this.handleValidate(el, _this._initial);
837+
_this.handleValidate(el, { noopable: _this._initial });
837838
if (_this._initial) {
838839
_this._initial = null;
839840
}
@@ -1742,7 +1743,7 @@ var SelectValidation = function (_BaseValidation) {
17421743
return;
17431744
}
17441745

1745-
_this2.handleValidate(el, _this2._initial);
1746+
_this2.handleValidate(el, { noopable: _this2._initial });
17461747
if (_this2._initial) {
17471748
_this2._initial = null;
17481749
}
@@ -1797,8 +1798,6 @@ var SelectValidation = function (_BaseValidation) {
17971798
return SelectValidation;
17981799
}(BaseValidation);
17991800

1800-
var eventRE = /^v-on:|^@/;
1801-
18021801
/**
18031802
* Validator class
18041803
*/
@@ -1857,8 +1856,8 @@ var Validator$1 = function () {
18571856
var attrs = this._dir.el.attributes;
18581857
for (var i = 0, l = attrs.length; i < l; i++) {
18591858
var event = attrs[i].name;
1860-
if (eventRE.test(event)) {
1861-
event = event.replace(eventRE, '');
1859+
if (REGEX_EVENT.test(event)) {
1860+
event = event.replace(REGEX_EVENT, '');
18621861
this._events[this._getEventName(event)] = this._dir.vm.$eval(attrs[i].value, true);
18631862
}
18641863
}
@@ -2588,7 +2587,7 @@ function plugin(Vue) {
25882587
Validate(Vue);
25892588
}
25902589

2591-
plugin.version = '2.1.0';
2590+
plugin.version = '2.1.1';
25922591

25932592
if (typeof window !== 'undefined' && window.Vue) {
25942593
window.Vue.use(plugin);

dist/vue-validator.js

+7-8
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* vue-validator v2.1.0
2+
* vue-validator v2.1.1
33
* (c) 2016 kazuya kawaguchi
44
* Released under the MIT License.
55
*/
@@ -433,6 +433,7 @@ var validators = Object.freeze({
433433
var PRIORITY_VALIDATE_CLASS = 32;
434434
var REGEX_FILTER = /[^|]\|[^|]/;
435435
var REGEX_VALIDATE_DIRECTIVE = /^v-validate(?:$|:(.*)$)/;
436+
var REGEX_EVENT = /^v-on:|^@/;
436437

437438
var classId = 0; // ID for validation class
438439

@@ -837,7 +838,7 @@ var validators = Object.freeze({
837838
return;
838839
}
839840

840-
_this.handleValidate(el, _this._initial);
841+
_this.handleValidate(el, { noopable: _this._initial });
841842
if (_this._initial) {
842843
_this._initial = null;
843844
}
@@ -1746,7 +1747,7 @@ var validators = Object.freeze({
17461747
return;
17471748
}
17481749

1749-
_this2.handleValidate(el, _this2._initial);
1750+
_this2.handleValidate(el, { noopable: _this2._initial });
17501751
if (_this2._initial) {
17511752
_this2._initial = null;
17521753
}
@@ -1801,8 +1802,6 @@ var validators = Object.freeze({
18011802
return SelectValidation;
18021803
}(BaseValidation);
18031804

1804-
var eventRE = /^v-on:|^@/;
1805-
18061805
/**
18071806
* Validator class
18081807
*/
@@ -1861,8 +1860,8 @@ var validators = Object.freeze({
18611860
var attrs = this._dir.el.attributes;
18621861
for (var i = 0, l = attrs.length; i < l; i++) {
18631862
var event = attrs[i].name;
1864-
if (eventRE.test(event)) {
1865-
event = event.replace(eventRE, '');
1863+
if (REGEX_EVENT.test(event)) {
1864+
event = event.replace(REGEX_EVENT, '');
18661865
this._events[this._getEventName(event)] = this._dir.vm.$eval(attrs[i].value, true);
18671866
}
18681867
}
@@ -2592,7 +2591,7 @@ var validators = Object.freeze({
25922591
Validate(Vue);
25932592
}
25942593

2595-
plugin.version = '2.1.0';
2594+
plugin.version = '2.1.1';
25962595

25972596
if (typeof window !== 'undefined' && window.Vue) {
25982597
window.Vue.use(plugin);

dist/vue-validator.min.js

+3-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/en/installation.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ See [dist folder](https://github.com/vuejs/vue-validator/tree/dev/dist). Note th
99
### jsdelivr
1010

1111
```html
12-
<script src="https://cdn.jsdelivr.net/vue.validator/2.1.0/vue-validator.min.js"></script>
12+
<script src="https://cdn.jsdelivr.net/vue.validator/2.1.1/vue-validator.min.js"></script>
1313
```
1414

1515
## NPM

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "vue-validator",
33
"description": "Validator component for Vue.js",
4-
"version": "2.1.0",
4+
"version": "2.1.1",
55
"author": {
66
"name": "kazuya kawaguchi",
77
"email": "[email protected]"

src/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ function plugin (Vue, options = {}) {
3030
Validate(Vue)
3131
}
3232

33-
plugin.version = '2.1.0'
33+
plugin.version = '2.1.1'
3434

3535
export default plugin
3636

0 commit comments

Comments
 (0)