From e0ad7dfcd47196d0aa9271e84b2c4ac26cfda3f4 Mon Sep 17 00:00:00 2001 From: Misko Hevery Date: Wed, 7 Apr 2010 17:24:24 -0700 Subject: seperatio validation and exception handling --- src/Angular.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/Angular.js') 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); } } -- cgit v1.2.3