aboutsummaryrefslogtreecommitdiffstats
path: root/src/Angular.js
diff options
context:
space:
mode:
authorMisko Hevery2010-03-29 21:36:34 -0700
committerMisko Hevery2010-03-29 21:36:34 -0700
commitcc6def854f2c77d0a7fea177df0dca858b8cd943 (patch)
treea47a1b9837ebbc5401a4cdcffbecec14737ab9ce /src/Angular.js
parente55c97debaa0ef8487ece219b6eadbc147ece1f9 (diff)
downloadangular.js-cc6def854f2c77d0a7fea177df0dca858b8cd943.tar.bz2
reenabled more tests
Diffstat (limited to 'src/Angular.js')
-rw-r--r--src/Angular.js10
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;