Skip to content

Commit 9b9f033

Browse files
Pull trentrichardson#851, Fixes trentrichardson#833 - check for window.console.log.apply for older IE
1 parent dc3d12a commit 9b9f033

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/jquery-ui-timepicker-addon.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -2229,7 +2229,8 @@
22292229
* @return {void}
22302230
*/
22312231
$.timepicker.log = function () {
2232-
if (window.console) {
2232+
// Older IE (9, maybe 10) throw error on accessing `window.console.log.apply`, so check first.
2233+
if (window.console && window.console.log && window.console.log.apply) {
22332234
window.console.log.apply(window.console, Array.prototype.slice.call(arguments));
22342235
}
22352236
};

0 commit comments

Comments
 (0)