Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit ba62e97

Browse files
committed
fix($parse): make the window check in ensureSafeObject IE8 friendly
1 parent b89d941 commit ba62e97

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ng/parse.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ function ensureSafeObject(obj, fullExpression) {
4545
'Referencing Function in Angular expressions is disallowed! Expression: {0}',
4646
fullExpression);
4747
} else if (// isWindow(obj)
48-
obj.window === obj) {
48+
obj.document && obj.location && obj.alert && obj.setInterval) {
4949
throw $parseMinErr('isecwindow',
5050
'Referencing the Window in Angular expressions is disallowed! Expression: {0}',
5151
fullExpression);

0 commit comments

Comments
 (0)