From ab9dae3bf3aed600602b1f25ce7f2a68054e3402 Mon Sep 17 00:00:00 2001 From: John-David Dalton Date: Sun, 15 Dec 2013 20:28:03 -0800 Subject: [PATCH] Fix IE compat mode bug with `clearTimeout` and `setTimeout` in test/index.html. --- test/index.html | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test/index.html b/test/index.html index 99c51f794..fc56f4dcd 100644 --- a/test/index.html +++ b/test/index.html @@ -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