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

Commit

Permalink
release(patch): v2.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
kazupon committed May 2, 2016
1 parent f474b90 commit d2ad88e
Show file tree
Hide file tree
Showing 7 changed files with 28 additions and 22 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
<a name="2.1.1"></a>
## [2.1.1](https://github.com/vuejs/vue-validator/compare/v2.1.0...v2.1.1) (2016-05-02)

### :star: Bug Fixes

* **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)


<a name="2.1.0"></a>
# [2.1.0](https://github.com/vuejs/vue-validator/compare/v2.0.2...v2.1.0) (2016-04-30)

Expand Down
15 changes: 7 additions & 8 deletions dist/vue-validator.common.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* vue-validator v2.1.0
* vue-validator v2.1.1
* (c) 2016 kazuya kawaguchi
* Released under the MIT License.
*/
Expand Down Expand Up @@ -429,6 +429,7 @@ var PRIORITY_VALIDATE = 16;
var PRIORITY_VALIDATE_CLASS = 32;
var REGEX_FILTER = /[^|]\|[^|]/;
var REGEX_VALIDATE_DIRECTIVE = /^v-validate(?:$|:(.*)$)/;
var REGEX_EVENT = /^v-on:|^@/;

var classId = 0; // ID for validation class

Expand Down Expand Up @@ -833,7 +834,7 @@ var BaseValidation = function () {
return;
}

_this.handleValidate(el, _this._initial);
_this.handleValidate(el, { noopable: _this._initial });
if (_this._initial) {
_this._initial = null;
}
Expand Down Expand Up @@ -1742,7 +1743,7 @@ var SelectValidation = function (_BaseValidation) {
return;
}

_this2.handleValidate(el, _this2._initial);
_this2.handleValidate(el, { noopable: _this2._initial });
if (_this2._initial) {
_this2._initial = null;
}
Expand Down Expand Up @@ -1797,8 +1798,6 @@ var SelectValidation = function (_BaseValidation) {
return SelectValidation;
}(BaseValidation);

var eventRE = /^v-on:|^@/;

/**
* Validator class
*/
Expand Down Expand Up @@ -1857,8 +1856,8 @@ var Validator$1 = function () {
var attrs = this._dir.el.attributes;
for (var i = 0, l = attrs.length; i < l; i++) {
var event = attrs[i].name;
if (eventRE.test(event)) {
event = event.replace(eventRE, '');
if (REGEX_EVENT.test(event)) {
event = event.replace(REGEX_EVENT, '');
this._events[this._getEventName(event)] = this._dir.vm.$eval(attrs[i].value, true);
}
}
Expand Down Expand Up @@ -2588,7 +2587,7 @@ function plugin(Vue) {
Validate(Vue);
}

plugin.version = '2.1.0';
plugin.version = '2.1.1';

if (typeof window !== 'undefined' && window.Vue) {
window.Vue.use(plugin);
Expand Down
15 changes: 7 additions & 8 deletions dist/vue-validator.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* vue-validator v2.1.0
* vue-validator v2.1.1
* (c) 2016 kazuya kawaguchi
* Released under the MIT License.
*/
Expand Down Expand Up @@ -433,6 +433,7 @@ var validators = Object.freeze({
var PRIORITY_VALIDATE_CLASS = 32;
var REGEX_FILTER = /[^|]\|[^|]/;
var REGEX_VALIDATE_DIRECTIVE = /^v-validate(?:$|:(.*)$)/;
var REGEX_EVENT = /^v-on:|^@/;

var classId = 0; // ID for validation class

Expand Down Expand Up @@ -837,7 +838,7 @@ var validators = Object.freeze({
return;
}

_this.handleValidate(el, _this._initial);
_this.handleValidate(el, { noopable: _this._initial });
if (_this._initial) {
_this._initial = null;
}
Expand Down Expand Up @@ -1746,7 +1747,7 @@ var validators = Object.freeze({
return;
}

_this2.handleValidate(el, _this2._initial);
_this2.handleValidate(el, { noopable: _this2._initial });
if (_this2._initial) {
_this2._initial = null;
}
Expand Down Expand Up @@ -1801,8 +1802,6 @@ var validators = Object.freeze({
return SelectValidation;
}(BaseValidation);

var eventRE = /^v-on:|^@/;

/**
* Validator class
*/
Expand Down Expand Up @@ -1861,8 +1860,8 @@ var validators = Object.freeze({
var attrs = this._dir.el.attributes;
for (var i = 0, l = attrs.length; i < l; i++) {
var event = attrs[i].name;
if (eventRE.test(event)) {
event = event.replace(eventRE, '');
if (REGEX_EVENT.test(event)) {
event = event.replace(REGEX_EVENT, '');
this._events[this._getEventName(event)] = this._dir.vm.$eval(attrs[i].value, true);
}
}
Expand Down Expand Up @@ -2592,7 +2591,7 @@ var validators = Object.freeze({
Validate(Vue);
}

plugin.version = '2.1.0';
plugin.version = '2.1.1';

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.0/vue-validator.min.js"></script>
<script src="https://cdn.jsdelivr.net/vue.validator/2.1.1/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.0",
"version": "2.1.1",
"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.0'
plugin.version = '2.1.1'

export default plugin

Expand Down

0 comments on commit d2ad88e

Please sign in to comment.