Fix IE compat mode bug with clearTimeout and setTimeout in test/index.html.

This commit is contained in:
John-David Dalton
2013-12-15 20:28:03 -08:00
parent 74da5dfd4b
commit ab9dae3bf3

View File

@@ -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