fix($parse): don't check Function.prototype.bind when it doesn't exist

e.g. IE8 doesn't have it
This commit is contained in:
Igor Minar
2014-06-30 11:15:39 -07:00
parent ba62e975f1
commit f13c33bf10

View File

@@ -74,7 +74,7 @@ function ensureSafeFunction(obj, fullExpression) {
throw $parseMinErr('isecfn',
'Referencing Function in Angular expressions is disallowed! Expression: {0}',
fullExpression);
} else if (obj === CALL || obj === APPLY || obj === BIND) {
} else if (obj === CALL || obj === APPLY || (BIND && obj === BIND)) {
throw $parseMinErr('isecff',
'Referencing call, apply or bind in Angular expressions is disallowed! Expression: {0}',
fullExpression);