diff --git a/src/util.js b/src/util.js index d228b3893..faf326fe6 100644 --- a/src/util.js +++ b/src/util.js @@ -7,7 +7,7 @@ WaveSurfer.util = { window.oRequestAnimationFrame || window.msRequestAnimationFrame || function (callback, element) { setTimeout(callback, 1000 / 60); } - ), + ).bind(window), frame: function (func) { return function () {