From 5fe1f39f027c6f2c6a530975dd5389d788d3c0eb Mon Sep 17 00:00:00 2001 From: Caitlin Potter Date: Tue, 7 Jan 2014 16:41:54 -0500 Subject: fix($parse): reduce false-positives in isElement tests There are always going to be false positives here, unfortunately. But testing different properties will hopefully reduce the number of false positives in a meaningful way, without harming performance too much. Closes #4805 Closes #5675 --- src/ng/parse.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/ng/parse.js b/src/ng/parse.js index 043be76c..bd3aa048 100644 --- a/src/ng/parse.js +++ b/src/ng/parse.js @@ -55,7 +55,7 @@ function ensureSafeObject(obj, fullExpression) { 'Referencing the Window in Angular expressions is disallowed! Expression: {0}', fullExpression); } else if (// isElement(obj) - obj.children && (obj.nodeName || (obj.on && obj.find))) { + obj.children && (obj.nodeName || (obj.prop && obj.attr && obj.find))) { throw $parseMinErr('isecdom', 'Referencing DOM nodes in Angular expressions is disallowed! Expression: {0}', fullExpression); -- cgit v1.2.3