Skip to content

Commit e8c3d2f

Browse files
committed
v1.3.2
- merge recent updates from cferdinandi/validate master branch - activate all build steps - remove orphaned dist/ folder (moved to static/) - adapt .gitignore to match
2 parents 45d524c + 5979980 commit e8c3d2f

16 files changed

+152
-178
lines changed

.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,13 @@
11
# Node
22
node_modules
3+
package-lock.json
34
test/results
45
test/coverage
56

7+
# Compiled
8+
docs/dist/js/*.min.*.js
9+
static/js/*.min.*.js
10+
611
## OS X
712
.DS_Store
813
._*

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
language: node_js
22
node_js:
3-
- "0.10"
3+
- "7"
44
before_script:
55
- npm install -g gulp
66
script: gulp

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Regarding the original script by Chris Ferdinandi: [Download Validate](https://g
77

88
[Download this fork of Validate](https://github.com/michapietsch/validate/archive/master.zip)
99

10-
This fork builds on v1.1.0 and adds the following features:
10+
This fork builds on v1.1.3 and adds the following features:
1111
- optional live validation while the visitor is still typing (v1.2.0) — see below for how to pass options
1212
- integration for custom errors by providing a wrapper around the HTML5 Constraint API setCustomValidity() function (v.1.3.0) — see below for an example to use the setCustomError() method
1313

dist/js/validate.min.js

Lines changed: 0 additions & 2 deletions
This file was deleted.

dist/js/validityState-polyfill.min.js

Lines changed: 0 additions & 2 deletions
This file was deleted.

docs/dist/js/validate.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* validate v1.3.1: A lightweight form validation script that augments native HTML5 form validation elements and attributes.
2+
* validate v1.3.2: A lightweight form validation script that augments native HTML5 form validation elements and attributes.
33
* (c) 2018 Chris Ferdinandi
44
* MIT License
55
* http://github.com/cferdinandi/validate
@@ -59,7 +59,7 @@
5959
beforeShowError: function () {},
6060
afterShowError: function () {},
6161
beforeRemoveError: function () {},
62-
afterRemoveError: function () {},
62+
afterRemoveError: function () {}
6363

6464
};
6565

@@ -166,7 +166,7 @@
166166

167167
// If field is required and empty
168168
if (validity.valueMissing) {
169-
169+
170170
if (field.type === 'select-multiple') return localSettings.messageValueMissingSelectMulti;
171171

172172
if (field.type === 'select-one') return localSettings.messageValueMissingSelect;
@@ -558,8 +558,8 @@
558558
if ( !settings ) return;
559559

560560
// Remove event listeners
561-
document.removeEventListener('blur', blurHandler, false);
562-
document.removeEventListener('click', clickHandler, true);
561+
document.removeEventListener('blur', blurHandler, true);
562+
document.removeEventListener('click', clickHandler, false);
563563
document.removeEventListener('submit', submitHandler, false);
564564

565565
if (settings.useLiveValidation) {

docs/dist/js/validate.min.js

Lines changed: 0 additions & 2 deletions
This file was deleted.

0 commit comments

Comments
 (0)