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

Commit f13c33b

Browse files
committed
fix($parse): don't check Function.prototype.bind when it doesn't exist
e.g. IE8 doesn't have it
1 parent ba62e97 commit f13c33b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ng/parse.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ function ensureSafeFunction(obj, fullExpression) {
7474
throw $parseMinErr('isecfn',
7575
'Referencing Function in Angular expressions is disallowed! Expression: {0}',
7676
fullExpression);
77-
} else if (obj === CALL || obj === APPLY || obj === BIND) {
77+
} else if (obj === CALL || obj === APPLY || (BIND && obj === BIND)) {
7878
throw $parseMinErr('isecff',
7979
'Referencing call, apply or bind in Angular expressions is disallowed! Expression: {0}',
8080
fullExpression);

0 commit comments

Comments
 (0)