Skip to content

Commit 15a757d

Browse files
committed
fix for IE11 chakra bug. Closes #1621
1 parent 0525f0e commit 15a757d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

underscore.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1105,10 +1105,10 @@
11051105
};
11061106
}
11071107

1108-
// Optimize `isFunction` if appropriate.
1108+
// Optimize `isFunction` if appropriate. Work around an IE 11 bug.
11091109
if (typeof /./ !== 'function') {
11101110
_.isFunction = function(obj) {
1111-
return typeof obj === 'function';
1111+
return typeof obj == 'function' || false;
11121112
};
11131113
}
11141114

0 commit comments

Comments
 (0)