Skip to content

Commit

Permalink
Mask requestAnimationFrame so tiles load in FF.
Browse files Browse the repository at this point in the history
  • Loading branch information
tschaub committed Feb 28, 2012
1 parent 4d31a3e commit 396b016
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions tests/Tile/UTFGrid.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,21 @@
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<script>
/**
* Because browsers that implement requestAnimationFrame may not execute
* animation functions while a window is not displayed (e.g. in a hidden
* iframe as in these tests), we mask the native implementations here. The
* native requestAnimationFrame functionality is tested in Util.html and
* in PanZoom.html (where a popup is opened before panning). The panTo tests
* here will test the fallback setTimeout implementation for animation.
*/
window.requestAnimationFrame =
window.webkitRequestAnimationFrame =
window.mozRequestAnimationFrame =
window.oRequestAnimationFrame =
window.msRequestAnimationFrame = null;
</script>
<script src="../OLLoader.js"></script>
<script type="text/javascript">

Expand Down

0 comments on commit 396b016

Please sign in to comment.