mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-01-31 15:27:50 +00:00
Fix IE compat mode bug with clearTimeout and setTimeout in test/index.html.
This commit is contained in:
@@ -111,6 +111,12 @@
|
||||
delete Object._keys;
|
||||
}
|
||||
|
||||
// Avoid a bug in IE compat mode where, under certain
|
||||
// circumstances, timer API like `setTimeout` maybe
|
||||
// not be the same as `window.setTimeout`.
|
||||
window.clearTimeout = window.clearTimeout;
|
||||
window.setTimeout = window.setTimeout;
|
||||
|
||||
addBizarroMethods();
|
||||
|
||||
// load Lo-Dash and expose it to the bad extensions/shims
|
||||
|
||||
Reference in New Issue
Block a user