diff --git a/src/openseadragon.js b/src/openseadragon.js index 57828044..83f417fa 100644 --- a/src/openseadragon.js +++ b/src/openseadragon.js @@ -1664,10 +1664,10 @@ window.OpenSeadragon = window.OpenSeadragon || function( options ){ if ( requestAnimationFrame && cancelAnimationFrame ) { // We can't assign these window methods directly to $ because they // expect their "this" to be "window", so we call them in wrappers. - $.requestAnimationFrame = function(){ + $.requestAnimationFrame = function(){ return requestAnimationFrame.apply( w, arguments ); }; - $.cancelAnimationFrame = function(){ + $.cancelAnimationFrame = function(){ return cancelAnimationFrame.apply( w, arguments ); }; } else {