Skip to content

Commit 81fc91e

Browse files
committed
Merge pull request #21 from TheSharpieOne/fix/iss-19
fix(validation): Use internal `$$parseAndValidate()`
2 parents d5dbf2b + 925d3cb commit 81fc91e

File tree

5 files changed

+8
-7
lines changed

5 files changed

+8
-7
lines changed

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "angular-input-match",
3-
"version": "1.4.0",
3+
"version": "1.4.1",
44
"homepage": "https://github.com/TheSharpieOne/angular-input-match",
55
"authors": [
66
"TheSharpieOne <evan@lostonia.com>"

dist/angular-input-match.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*!
22
* angular-input-match
33
* Checks if one input matches another
4-
* @version v1.4.0
4+
* @version v1.4.1
55
* @link https://github.com/TheSharpieOne/angular-input-match
66
* @license MIT License, http://www.opensource.org/licenses/MIT
77
*/
@@ -26,7 +26,7 @@ function match ($parse) {
2626
var matchGetter = $parse(attrs.match);
2727

2828
scope.$watch(getMatchValue, function(){
29-
ctrl.$validate();
29+
ctrl.$$parseAndValidate();
3030
});
3131

3232
ctrl.$validators.match = function(){
@@ -44,4 +44,4 @@ function match ($parse) {
4444
};
4545
}
4646
match.$inject = ["$parse"];
47-
})(window, window.angular);
47+
})(window, window.angular);

dist/angular-input-match.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "angular-input-match",
3-
"version": "1.4.0",
3+
"version": "1.4.1",
44
"homepage": "https://github.com/TheSharpieOne/angular-input-match",
55
"description": "Checks if one input matches another",
66
"main": "./dist/angular-input-match.min.js",
@@ -35,6 +35,7 @@
3535
}
3636
],
3737
"devDependencies": {
38+
"chai": "1.10.0",
3839
"gulp": "^3.8.8",
3940
"gulp-bump": "~0.1.0",
4041
"gulp-karma": "0.0.4",

src/angular-input-match.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ function match ($parse) {
1919
var matchGetter = $parse(attrs.match);
2020

2121
scope.$watch(getMatchValue, function(){
22-
ctrl.$validate();
22+
ctrl.$$parseAndValidate();
2323
});
2424

2525
ctrl.$validators.match = function(){

0 commit comments

Comments
 (0)