aboutsummaryrefslogtreecommitdiffstats
path: root/src/Angular.js
diff options
context:
space:
mode:
authorMisko Hevery2011-08-24 21:50:12 -0700
committerIgor Minar2011-10-11 10:53:07 -0700
commite86c435349fd68ece54c5e31b834a3848387c933 (patch)
tree14692f499bf0dd0a5db685ab888096deb1293b71 /src/Angular.js
parent1942861472a4cd8d2d72f2ed54ee2b63be5d68b8 (diff)
downloadangular.js-e86c435349fd68ece54c5e31b834a3848387c933.tar.bz2
refactor(bindings): remove the decoration of the DOM with errors.
Only $exceptionHandler gets notified now.
Diffstat (limited to 'src/Angular.js')
-rw-r--r--src/Angular.js32
1 files changed, 0 insertions, 32 deletions
diff --git a/src/Angular.js b/src/Angular.js
index 407fc263..caa51a06 100644
--- a/src/Angular.js
+++ b/src/Angular.js
@@ -71,8 +71,6 @@ var _undefined = undefined,
$value = 'value',
$selected = 'selected',
$undefined = 'undefined',
- NG_EXCEPTION = 'ng-exception',
- NG_VALIDATION_ERROR = 'ng-validation-error',
NOOP = 'noop',
Error = window.Error,
/** holds major version number for IE or NaN for real browsers */
@@ -758,36 +756,6 @@ function setHtml(node, html) {
}
}
-function isRenderableElement(element) {
- var name = element && element[0] && element[0].nodeName;
- return name && name.charAt(0) != '#' &&
- !includes(['TR', 'COL', 'COLGROUP', 'TBODY', 'THEAD', 'TFOOT'], name);
-}
-
-function elementError(element, type, error) {
- var parent;
-
- while (!isRenderableElement(element)) {
- parent = element.parent();
- if (parent.length) {
- element = element.parent();
- } else {
- return;
- }
- }
-
- if (element[0]['$NG_ERROR'] !== error) {
- element[0]['$NG_ERROR'] = error;
- if (error) {
- element.addClass(type);
- element.attr(type, error.message || error);
- } else {
- element.removeClass(type);
- element.removeAttr(type);
- }
- }
-}
-
function concat(array1, array2, index) {
return array1.concat(slice.call(array2, index));
}