diff options
| author | Shyam Seshadri | 2010-06-03 11:03:11 -0700 |
|---|---|---|
| committer | Shyam Seshadri | 2010-06-03 11:03:11 -0700 |
| commit | 36b58b235eeca4e9580162a697d8a96c41263ebc (patch) | |
| tree | 89f6d70b5ece8cfd9b2713821de20603f21fefed /src | |
| parent | 3245209bdb9e656622756220c5bbeb80d3ae2eac (diff) | |
| download | angular.js-36b58b235eeca4e9580162a697d8a96c41263ebc.tar.bz2 | |
fix some lint issues
Diffstat (limited to 'src')
| -rw-r--r-- | src/widgets.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/widgets.js b/src/widgets.js index 42d56e20..5df92de0 100644 --- a/src/widgets.js +++ b/src/widgets.js @@ -45,11 +45,13 @@ function valueAccessor(scope, element) { format = formatter.format; parse = formatter.parse; if (requiredExpr) { - scope.$watch(requiredExpr, function(newValue) {required = newValue; validate();}); + scope.$watch(requiredExpr, function(newValue) { + required = newValue; + validate(); + }); } else { required = requiredExpr === ''; } - element.data('$validate', validate); return { |
