update lib
git-svn-id: http://www.cozmixng.org/repos/piro/treestyletab/trunk@4112 599a83e7-65a4-db11-8015-0010dcdd6dc2
This commit is contained in:
parent
eacfbbe4de
commit
a4475151d1
@ -24,7 +24,7 @@
|
|||||||
http://www.cozmixng.org/repos/piro/fx3-compatibility-lib/trunk/animationManager.js
|
http://www.cozmixng.org/repos/piro/fx3-compatibility-lib/trunk/animationManager.js
|
||||||
*/
|
*/
|
||||||
(function() {
|
(function() {
|
||||||
const currentRevision = 5;
|
const currentRevision = 4;
|
||||||
|
|
||||||
if (!('piro.sakura.ne.jp' in window)) window['piro.sakura.ne.jp'] = {};
|
if (!('piro.sakura.ne.jp' in window)) window['piro.sakura.ne.jp'] = {};
|
||||||
|
|
||||||
@ -50,7 +50,7 @@
|
|||||||
if (!aTask) return;
|
if (!aTask) return;
|
||||||
this.tasks.push({
|
this.tasks.push({
|
||||||
task : aTask,
|
task : aTask,
|
||||||
start : Date.now(),
|
start : (new Date()).getTime(),
|
||||||
beginning : aBeginningValue,
|
beginning : aBeginningValue,
|
||||||
change : aTotalChange,
|
change : aTotalChange,
|
||||||
duration : aDuration
|
duration : aDuration
|
||||||
@ -109,7 +109,7 @@
|
|||||||
onAnimation : function(aSelf)
|
onAnimation : function(aSelf)
|
||||||
{
|
{
|
||||||
// task should return true if it finishes.
|
// task should return true if it finishes.
|
||||||
var now = Date.now();
|
var now = (new Date()).getTime();
|
||||||
aSelf.tasks = aSelf.tasks.filter(function(aTask) {
|
aSelf.tasks = aSelf.tasks.filter(function(aTask) {
|
||||||
try {
|
try {
|
||||||
return !aTask.task(
|
return !aTask.task(
|
||||||
@ -128,4 +128,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
if (tasks.length)
|
||||||
|
window['piro.sakura.ne.jp'].animationManager.start();
|
||||||
})();
|
})();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user