Skip to content
This repository has been archived by the owner on Jul 1, 2020. It is now read-only.

Commit

Permalink
Add unminified version and fix #153 bug in validation service
Browse files Browse the repository at this point in the history
  • Loading branch information
ghiscoding committed Apr 20, 2017
1 parent d253eab commit 61e0238
Show file tree
Hide file tree
Showing 7 changed files with 3,369 additions and 7 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "angular-validation-ghiscoding",
"version": "1.5.19",
"version": "1.5.20",
"author": "Ghislain B.",
"description": "Angular-Validation Directive and Service (ghiscoding)",
"main": [
Expand Down
3,350 changes: 3,350 additions & 0 deletions dist/angular-validation.js

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions dist/angular-validation.min.js

Large diffs are not rendered by default.

12 changes: 12 additions & 0 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,18 @@ gulp.task('compress', ['clean'], function() {
.pipe(gulp.dest('./'));
}

// compress (src/*.js) into 1 single minified file
gulp.src(src + '*.js')
.pipe(order([
'validation-directive.js',
'validation-common.js',
'validation-rules.js',
'validation-service.js'
]))
.pipe(concat('angular-validation.js'))
.pipe(header(jsHeaderComment, { pkg : pkg, version: newVersion } ))
.pipe(gulp.dest('dist'));

// compress (src/*.js) into 1 single minified file
gulp.src(src + '*.js')
.pipe(order([
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "angular-validation-ghiscoding",
"version": "1.5.19",
"version": "1.5.20",
"author": "Ghislain B.",
"description": "Angular-Validation Directive and Service (ghiscoding)",
"main": "dist/angular-validation.min",
Expand Down
2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Angular Validation (Directive / Service)
`Version: 1.5.19`
`Version: 1.5.20`
### Forms Validation with Angular made easy!
##### (Concept comes from the amazing Laravel)

Expand Down
2 changes: 1 addition & 1 deletion src/validation-service.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ angular

// Possible element attributes
_validationCallback = (self.validationAttrs.hasOwnProperty('validationCallback')) ? self.validationAttrs.validationCallback : null;
_validateOnEmpty = (self.validationAttrs.hasOwnProperty('validateOnEmpty')) ? commonObj.parseBool(self.validationAttrs.validateOnEmpty) : !!_globalOptions.validateOnEmpty;
_validateOnEmpty = (self.validationAttrs.hasOwnProperty('validateOnEmpty')) ? self.commonObj.parseBool(self.validationAttrs.validateOnEmpty) : !!_globalOptions.validateOnEmpty;

// onBlur make validation without waiting
attrs.elm.bind('blur', _blurHandler = function(event) {
Expand Down

0 comments on commit 61e0238

Please sign in to comment.