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 /docs/content | |
| parent | 4e83399570391fe4a41ce4dc27c8a191f761d26d (diff) | |
| download | angular.js-4370d756e4e758f0e95e83390f7555cb9f48e6fe.tar.bz2 | |
refactor(directive.ngModel): rename emitValidity -> setValidity
Diffstat (limited to 'docs/content')
| -rw-r--r-- | docs/content/guide/dev_guide.forms.ngdoc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/content/guide/dev_guide.forms.ngdoc b/docs/content/guide/dev_guide.forms.ngdoc index 97d82bb1..cbb73abc 100644 --- a/docs/content/guide/dev_guide.forms.ngdoc +++ b/docs/content/guide/dev_guide.forms.ngdoc @@ -297,9 +297,9 @@ This example shows how to implement a custom HTML editor widget in Angular. ctrl.formatters.push(function(value) { try { value = $sanitize(value || ''); - ctrl.emitValidity('HTML', true); + ctrl.setValidity('HTML', true); } catch (e) { - ctrl.emitValidity('HTML', false); + ctrl.setValidity('HTML', false); } }); |
