Merge pull request #840 from thegreat/ie_error_cleartimeout
fix IE8 error with calling call() on window.clearTimeout()
This commit is contained in:
commit
a374e27d50
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user