diff options
| author | Misko Hevery | 2010-03-29 21:36:34 -0700 |
|---|---|---|
| committer | Misko Hevery | 2010-03-29 21:36:34 -0700 |
| commit | cc6def854f2c77d0a7fea177df0dca858b8cd943 (patch) | |
| tree | a47a1b9837ebbc5401a4cdcffbecec14737ab9ce /src/Angular.js | |
| parent | e55c97debaa0ef8487ece219b6eadbc147ece1f9 (diff) | |
| download | angular.js-cc6def854f2c77d0a7fea177df0dca858b8cd943.tar.bz2 | |
reenabled more tests
Diffstat (limited to 'src/Angular.js')
| -rw-r--r-- | src/Angular.js | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/Angular.js b/src/Angular.js index 12293ddb..e49eb9a9 100644 --- a/src/Angular.js +++ b/src/Angular.js @@ -228,6 +228,16 @@ function escapeHtml(html) { replace(/>/g, '>'); } +function elementDecorateError(element, error) { + if (error) { + element.addClass(NG_VALIDATION_ERROR); + element.attr(NG_ERROR, error); + } else { + element.removeClass(NG_VALIDATION_ERROR); + element.removeAttr(NG_ERROR); + } +} + function escapeAttr(html) { if (!html || !html.replace) return html; |
