mirror of
https://github.com/logsol/chuck.js.git
synced 2026-05-11 18:47:35 +00:00
some more renaming
This commit is contained in:
parent
9de3147406
commit
bd45f538c7
34 changed files with 0 additions and 0 deletions
|
|
@ -1,25 +0,0 @@
|
|||
define(['Chuck/Settings'], function(Settings) {
|
||||
|
||||
var requestAnimFrame = (function(){
|
||||
|
||||
var _setTimeout = function( callback ){
|
||||
setTimeout(callback, Settings.BOX2D_TIME_STEP * 1000);
|
||||
}
|
||||
|
||||
if (typeof window != 'undefined') {
|
||||
|
||||
return window.requestAnimationFrame ||
|
||||
window.webkitRequestAnimationFrame ||
|
||||
window.mozRequestAnimationFrame ||
|
||||
window.oRequestAnimationFrame ||
|
||||
window.msRequestAnimationFrame ||
|
||||
_setTimeout;
|
||||
|
||||
} else {
|
||||
return _setTimeout;
|
||||
}
|
||||
|
||||
})();
|
||||
|
||||
return requestAnimFrame;
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue