Skip to content

Commit

Permalink
updated husky validation
Browse files Browse the repository at this point in the history
  • Loading branch information
danrot committed Dec 16, 2015
1 parent 46b2aa2 commit 905c292
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 15 deletions.
8 changes: 1 addition & 7 deletions dist/husky.js
Original file line number Diff line number Diff line change
Expand Up @@ -50772,13 +50772,7 @@ define("datepicker-zh-TW", function(){});
},

getObject: function(selector) {
if (typeof selector === 'string') {
return $(selector).data('form-object');
} else if (typeof selector === 'object') {
return selector;
} else {
throw 'Not supported';
}
return $(selector).data('form-object');
},

validate: function(selector, force) {
Expand Down
2 changes: 1 addition & 1 deletion dist/husky.min.js

Large diffs are not rendered by default.

8 changes: 1 addition & 7 deletions husky_extensions/husky-validation.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,7 @@
},

getObject: function(selector) {
if (typeof selector === 'string') {
return $(selector).data('form-object');
} else if (typeof selector === 'object') {
return selector;
} else {
throw 'Not supported';
}
return $(selector).data('form-object');
},

validate: function(selector, force) {
Expand Down

0 comments on commit 905c292

Please sign in to comment.