From ba62e975f1a0cebf08dedbb1501f72b166af66db Mon Sep 17 00:00:00 2001 From: Igor Minar Date: Mon, 30 Jun 2014 11:06:18 -0700 Subject: [PATCH] fix($parse): make the window check in ensureSafeObject IE8 friendly --- src/ng/parse.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ng/parse.js b/src/ng/parse.js index fbee2f9f8..c75c4fdf7 100644 --- a/src/ng/parse.js +++ b/src/ng/parse.js @@ -45,7 +45,7 @@ function ensureSafeObject(obj, fullExpression) { 'Referencing Function in Angular expressions is disallowed! Expression: {0}', fullExpression); } else if (// isWindow(obj) - obj.window === obj) { + obj.document && obj.location && obj.alert && obj.setInterval) { throw $parseMinErr('isecwindow', 'Referencing the Window in Angular expressions is disallowed! Expression: {0}', fullExpression);