fix($parse): make the window check in ensureSafeObject IE8 friendly

This commit is contained in:
Igor Minar
2014-06-30 11:06:18 -07:00
parent b89d941cdf
commit ba62e975f1

View File

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