Skip to content

Commit

Permalink
Merge pull request #21 from TheSharpieOne/fix/iss-19
Browse files Browse the repository at this point in the history
fix(validation): Use internal `$$parseAndValidate()`
  • Loading branch information
TheSharpieOne committed Mar 13, 2015
2 parents d5dbf2b + 925d3cb commit 81fc91e
Show file tree
Hide file tree
Showing 5 changed files with 8 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-input-match",
"version": "1.4.0",
"version": "1.4.1",
"homepage": "https://github.com/TheSharpieOne/angular-input-match",
"authors": [
"TheSharpieOne <evan@lostonia.com>"
Expand Down
6 changes: 3 additions & 3 deletions dist/angular-input-match.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*!
* angular-input-match
* Checks if one input matches another
* @version v1.4.0
* @version v1.4.1
* @link https://github.com/TheSharpieOne/angular-input-match
* @license MIT License, http://www.opensource.org/licenses/MIT
*/
Expand All @@ -26,7 +26,7 @@ function match ($parse) {
var matchGetter = $parse(attrs.match);

scope.$watch(getMatchValue, function(){
ctrl.$validate();
ctrl.$$parseAndValidate();
});

ctrl.$validators.match = function(){
Expand All @@ -44,4 +44,4 @@ function match ($parse) {
};
}
match.$inject = ["$parse"];
})(window, window.angular);
})(window, window.angular);
2 changes: 1 addition & 1 deletion dist/angular-input-match.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "angular-input-match",
"version": "1.4.0",
"version": "1.4.1",
"homepage": "https://github.com/TheSharpieOne/angular-input-match",
"description": "Checks if one input matches another",
"main": "./dist/angular-input-match.min.js",
Expand Down Expand Up @@ -35,6 +35,7 @@
}
],
"devDependencies": {
"chai": "1.10.0",
"gulp": "^3.8.8",
"gulp-bump": "~0.1.0",
"gulp-karma": "0.0.4",
Expand Down
2 changes: 1 addition & 1 deletion src/angular-input-match.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ function match ($parse) {
var matchGetter = $parse(attrs.match);

scope.$watch(getMatchValue, function(){
ctrl.$validate();
ctrl.$$parseAndValidate();
});

ctrl.$validators.match = function(){
Expand Down

0 comments on commit 81fc91e

Please sign in to comment.