Merge pull request #840 from thegreat/ie_error_cleartimeout

fix IE8 error with calling call() on window.clearTimeout()
This commit is contained in:
Vladimir Agafonkin 2012-07-27 13:07:07 -07:00
commit a374e27d50

View File

@ -120,7 +120,10 @@ L.Util = {
var cancelFn = window.cancelAnimationFrame || var cancelFn = window.cancelAnimationFrame ||
getPrefixed('CancelAnimationFrame') || getPrefixed('CancelAnimationFrame') ||
getPrefixed('CancelRequestAnimationFrame') || window.clearTimeout; getPrefixed('CancelRequestAnimationFrame') ||
function (id) {
window.clearTimeout(id);
};
L.Util.requestAnimFrame = function (fn, context, immediate, element) { L.Util.requestAnimFrame = function (fn, context, immediate, element) {