Merge pull request #103 from acdha/paranoid-requestanimationframe-polyfill

Paranoid requestAnimationFrame for antique Firefox
This commit is contained in:
iangilman 2013-05-23 09:25:21 -07:00
commit 86a908a4de

View File

@ -1662,7 +1662,7 @@ window.OpenSeadragon = window.OpenSeadragon || function( options ){
// polyfill, when necessary
if ( w.requestAnimationFrame ) {
if ( w.requestAnimationFrame && w.cancelAnimationFrame ) {
//we cant assign window.requestAnimationFrame directly to $.requestAnimationFrame
//without getting Illegal Invocation errors in webkit so call in a
//wrapper