Permalink
Browse files

Revertng changes from t152 merge

This reverts commit 0492c42.
  • Loading branch information...
1 parent 646acb2 commit 5ac9c5135eb56048f9c8f4494d46724a796f0f14 @cathyatseneca committed May 20, 2011
Showing with 12 additions and 0 deletions.
  1. +12 −0 c3dl/c3dapi.js
View
@@ -173,3 +173,15 @@ c3dl_require('interaction/collision.js');
c3dl_require('interaction/picking.js');
c3dl_require('interaction/pickingresult.js');
+//Function to call the various versions of requestAnimationFrame
+//To be updated when this is properly standardized.
+window.requestAnimFrame = (function(callback){
+ return window.requestAnimationFrame ||
+ window.webkitRequestAnimationFrame ||
+ window.mozRequestAnimationFrame ||
+ window.oRequestAnimationFrame ||
+ window.msRequestAnimationFrame ||
+ function(/* function */ callback, /* DOMElement */ element){
+ window.setTimeout(callback, 1000 / 60);
+ };
+ })();

0 comments on commit 5ac9c51

Please sign in to comment.