aboutsummaryrefslogtreecommitdiffstats
path: root/src/Angular.js
diff options
context:
space:
mode:
authorMisko Hevery2010-04-07 17:24:24 -0700
committerMisko Hevery2010-04-07 17:24:24 -0700
commite0ad7dfcd47196d0aa9271e84b2c4ac26cfda3f4 (patch)
treef62565e7318ca6fe83520855292a29231b5f5970 /src/Angular.js
parenta8aa5af413c068608aa28ef0d48cef1d5ad66485 (diff)
downloadangular.js-e0ad7dfcd47196d0aa9271e84b2c4ac26cfda3f4.tar.bz2
seperatio validation and exception handling
Diffstat (limited to 'src/Angular.js')
-rw-r--r--src/Angular.js5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/Angular.js b/src/Angular.js
index 3b5e1c90..d8b03464 100644
--- a/src/Angular.js
+++ b/src/Angular.js
@@ -10,7 +10,6 @@ var consoleNode,
PRIORITY_WATCH = -1000,
PRIORITY_LAST = 99999,
NOOP = 'noop',
- NG_ERROR = 'ng-error',
NG_EXCEPTION = 'ng-exception',
NG_VALIDATION_ERROR = 'ng-validation-error',
jQuery = window['jQuery'] || window['$'], // weirdness to make IE happy
@@ -259,10 +258,10 @@ function elementError(element, type, error) {
}
if (error) {
element.addClass(type);
- element.attr(NG_ERROR, error);
+ element.attr(type, error);
} else {
element.removeClass(type);
- element.removeAttr(NG_ERROR);
+ element.removeAttr(type);
}
}