From a4475151d1788d8b1c62828fd503dc7a7c049fc7 Mon Sep 17 00:00:00 2001 From: piro Date: Fri, 10 Apr 2009 01:37:29 +0000 Subject: [PATCH] update lib git-svn-id: http://www.cozmixng.org/repos/piro/treestyletab/trunk@4112 599a83e7-65a4-db11-8015-0010dcdd6dc2 --- content/treestyletab/res/animationManager.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/content/treestyletab/res/animationManager.js b/content/treestyletab/res/animationManager.js index 260a2cf5..ac4eb4a4 100644 --- a/content/treestyletab/res/animationManager.js +++ b/content/treestyletab/res/animationManager.js @@ -24,7 +24,7 @@ http://www.cozmixng.org/repos/piro/fx3-compatibility-lib/trunk/animationManager.js */ (function() { - const currentRevision = 5; + const currentRevision = 4; if (!('piro.sakura.ne.jp' in window)) window['piro.sakura.ne.jp'] = {}; @@ -50,7 +50,7 @@ if (!aTask) return; this.tasks.push({ task : aTask, - start : Date.now(), + start : (new Date()).getTime(), beginning : aBeginningValue, change : aTotalChange, duration : aDuration @@ -109,7 +109,7 @@ onAnimation : function(aSelf) { // task should return true if it finishes. - var now = Date.now(); + var now = (new Date()).getTime(); aSelf.tasks = aSelf.tasks.filter(function(aTask) { try { return !aTask.task( @@ -128,4 +128,7 @@ } }; + + if (tasks.length) + window['piro.sakura.ne.jp'].animationManager.start(); })();