diff options
| author | Vojta Jina | 2012-02-27 16:28:12 -0800 | 
|---|---|---|
| committer | Vojta Jina | 2012-02-28 18:22:41 -0800 | 
| commit | 4370d756e4e758f0e95e83390f7555cb9f48e6fe (patch) | |
| tree | b899b73c22ede0c3858faba346b51ecbf8096222 /src/widget/select.js | |
| parent | 4e83399570391fe4a41ce4dc27c8a191f761d26d (diff) | |
| download | angular.js-4370d756e4e758f0e95e83390f7555cb9f48e6fe.tar.bz2 | |
refactor(directive.ngModel): rename emitValidity -> setValidity
Diffstat (limited to 'src/widget/select.js')
| -rw-r--r-- | src/widget/select.js | 2 | 
1 files changed, 1 insertions, 1 deletions
| diff --git a/src/widget/select.js b/src/widget/select.js index e7386147..f3c0f3dd 100644 --- a/src/widget/select.js +++ b/src/widget/select.js @@ -139,7 +139,7 @@ var selectDirective = ['$compile', '$parse', function($compile,   $parse) {        // required validator        if (multiple && (attr.required || attr.ngRequired)) {          var requiredValidator = function(value) { -          ctrl.emitValidity('REQUIRED', !attr.required || (value && value.length)); +          ctrl.setValidity('REQUIRED', !attr.required || (value && value.length));            return value;          }; | 
