Skip to content

Commit e5ee0c2

Browse files
authored
Merge pull request Jakobovski#108 from lydongray/hotfix-dependency
Fix missing dependency and incorrect attribute name
2 parents 1109a24 + 5d89093 commit e5ee0c2

File tree

5 files changed

+23
-20
lines changed

5 files changed

+23
-20
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": "tg-angular-validator",
3-
"version": "1.2.8",
3+
"version": "1.2.10",
44
"authors": [
55
"Zohar Jackson <zohar@turinggroup.com>"
66
],

dist/angular-validator.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
angular.module('angularValidator', []);
22

33
angular.module('angularValidator').directive('angularValidator', ['$injector', '$parse',
4-
function($injector, $parse) {
4+
function($injector, $parse, $compile) {
55
return {
66
restrict: 'A',
77
link: function(scope, element, attrs, fn) {
@@ -74,7 +74,7 @@ angular.module('angularValidator').directive('angularValidator', ['$injector', '
7474
// If the form is valid then call the function that is declared in the angular-validator-submit attribute on the form element
7575
if (scopeForm.$valid) {
7676
scope.$apply(function() {
77-
scope.$eval(attrs['angular-validator-submit']);
77+
scope.$eval(attrs['angularValidatorSubmit']);
7878
});
7979
}
8080
});

dist/angular-validator.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: 16 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,21 @@
33
"test": "grunt test --verbose"
44
},
55
"dependencies": {
6-
"grunt-cli": ">= 0.1.7",
7-
"grunt-contrib-connect" : "*",
8-
"grunt-contrib-concat": "*",
9-
"grunt-contrib-jshint": "*",
10-
"grunt-contrib-uglify": "*",
11-
"grunt-contrib-watch": "~0.6.1",
12-
"grunt-browser-sync": "~0.9.1",
13-
"grunt-karma": "latest",
14-
"karma": "^0.13.0",
15-
"karma-phantomjs-launcher": "~0.1.2",
16-
"karma-jasmine": "~0.1.5",
17-
"ng-annotate": ">=0.15.4",
18-
"grunt-ng-annotate": ">=0.10.0"
6+
"grunt": "^1.0.1",
7+
"grunt-browser-sync": "^2.2.0",
8+
"grunt-cli": "^1.2.0",
9+
"grunt-contrib-concat": "^1.0.1",
10+
"grunt-contrib-connect": "^1.0.2",
11+
"grunt-contrib-jshint": "^1.0.0",
12+
"grunt-contrib-uglify": "^2.0.0",
13+
"grunt-contrib-watch": "^1.0.0",
14+
"grunt-karma": "^2.0.0",
15+
"grunt-ng-annotate": "^3.0.0",
16+
"jasmine-core": "^2.5.2",
17+
"karma": "^1.3.0",
18+
"karma-chrome-launcher": "^2.0.0",
19+
"karma-jasmine": "^1.0.2",
20+
"karma-phantomjs-launcher": "^1.0.2",
21+
"ng-annotate": "^1.2.1"
1922
}
2023
}

src/angular-validator.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
angular.module('angularValidator', []);
22

3-
angular.module('angularValidator').directive('angularValidator', ['$injector', '$parse',
4-
function($injector, $parse) {
3+
angular.module('angularValidator').directive('angularValidator', ['$injector', '$parse', '$compile',
4+
function($injector, $parse, $compile) {
55
return {
66
restrict: 'A',
77
link: function(scope, element, attrs, fn) {
@@ -74,7 +74,7 @@ angular.module('angularValidator').directive('angularValidator', ['$injector', '
7474
// If the form is valid then call the function that is declared in the angular-validator-submit attribute on the form element
7575
if (scopeForm.$valid) {
7676
scope.$apply(function() {
77-
scope.$eval(attrs['angular-validator-submit']);
77+
scope.$eval(attrs['angularValidatorSubmit']);
7878
});
7979
}
8080
});

0 commit comments

Comments
 (0)