Permalink
Browse files

Fix issue with timer when request animation frame did not exist (Safari)

  • Loading branch information...
1 parent 3dcf468 commit 9ae040d79533365c66edb06ae9aee14775b859ee @mortennobel committed Mar 16, 2012
Showing with 4 additions and 3 deletions.
  1. +2 −1 build/kick-debug-0.3.1.js
  2. +1 −1 build/kick-min-0.3.1.js
  3. +1 −1 src/js/core.js
@@ -8588,7 +8588,7 @@ KICK.namespace = function (ns_string) {
window.msRequestAnimationFrame ||
function (/* function */ callback, /* DOMElement */ element) {
var fps60 = 16.7;
- return window.setTimeout(callback, fps60);
+ return window.setTimeout(callback, fps60, new Date().getTime());
};
})();
@@ -11272,6 +11272,7 @@ KICK.namespace = function (ns_string) {
* @method createDefault
* @param {KICK.core.Engine} engine
* @static
+ * @return {KICK.scene.Scene}
*/
scene.Scene.createDefault = function(engine){
var newScene = new scene.Scene(engine);
View

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
View
@@ -2510,7 +2510,7 @@ KICK.namespace = function (ns_string) {
window.msRequestAnimationFrame ||
function (/* function */ callback, /* DOMElement */ element) {
var fps60 = 16.7;
- return window.setTimeout(callback, fps60);
+ return window.setTimeout(callback, fps60, new Date().getTime());
};
})();

0 comments on commit 9ae040d

Please sign in to comment.