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);