Skip to content
This repository has been archived by the owner on Jan 24, 2019. It is now read-only.

Commit

Permalink
Merge pull request #149 from blowsie/patch-1
Browse files Browse the repository at this point in the history
Returning undefined, will cause any subsequent validation tests to fail
  • Loading branch information
ProLoser committed Feb 1, 2014
2 parents 4180b18 + 76acf1e commit 32cf1e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/validate/validate.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ angular.module('ui.validate',[]).directive('uiValidate', function () {
} else {
// expression is false
ctrl.$setValidity(key, false);
return undefined;
return valueToValidate;
}
};
validators[key] = validateFn;
Expand Down

0 comments on commit 32cf1e0

Please sign in to comment.