Skip to content

Commit

Permalink
requestAnimationFrame should be bound on window... (#1120)
Browse files Browse the repository at this point in the history
  • Loading branch information
agamemnus authored and katspaugh committed Jun 11, 2017
1 parent 7fd5a6d commit 29fd88d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ WaveSurfer.util = {
window.oRequestAnimationFrame ||
window.msRequestAnimationFrame ||
function (callback, element) { setTimeout(callback, 1000 / 60); }
),
).bind(window),

frame: function (func) {
return function () {
Expand Down

0 comments on commit 29fd88d

Please sign in to comment.