Skip to content

Commit

Permalink
1.0.7 messageWhenPresent typo
Browse files Browse the repository at this point in the history
  • Loading branch information
stuyam committed Apr 10, 2019
1 parent 7d8496e commit eb40aba
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "simple-react-validator",
"description": "A simple react form validator inspired by Laravel validation.",
"main": "dist/simple-react-validator.min.js",
"version": "1.0.6",
"version": "1.0.7",
"authors": [
"Stuart Yamartino"
],
Expand Down
4 changes: 2 additions & 2 deletions dist/simple-react-validator.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Simple React Validator v1.0.6 | Created By Dockwa | MIT License | 2017 - Present
// Simple React Validator v1.0.7 | Created By Dockwa | MIT License | 2017 - Present
;(function(root, factory) {
if (typeof define === 'function' && define.amd) {
define(['react'], factory);
Expand Down Expand Up @@ -443,7 +443,7 @@ function () {
value: function messageWhenPresent(message) {
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};

if (!this.isBlank(message) && this.messagesShown) {
if (!this.helpers.isBlank(message) && this.messagesShown) {
return this.helpers.element(message, options);
}
}
Expand Down
4 changes: 2 additions & 2 deletions dist/simple-react-validator.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ var inject = require('gulp-inject-string')
var rename = require('gulp-rename');
var uglify = require('gulp-uglify');
var babel = require('gulp-babel');
var HEADER_COMMENT = '// Simple React Validator v1.0.6 | Created By Dockwa | MIT License | 2017 - Present\n';
var HEADER_COMMENT = '// Simple React Validator v1.0.7 | Created By Dockwa | MIT License | 2017 - Present\n';

var gutil = require('gulp-util');

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": "simple-react-validator",
"version": "1.0.6",
"version": "1.0.7",
"description": "A simple react form validator inspired by Laravel validation.",
"main": "dist/simple-react-validator.min.js",
"dependencies": {},
Expand Down
2 changes: 1 addition & 1 deletion src/simple-react-validator.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ class SimpleReactValidator {
}

messageWhenPresent(message, options = {}) {
if (!this.isBlank(message) && this.messagesShown) {
if (!this.helpers.isBlank(message) && this.messagesShown) {
return this.helpers.element(message, options);
}
}
Expand Down

0 comments on commit eb40aba

Please sign in to comment.