ライブラリ更新

git-svn-id: http://www.cozmixng.org/repos/piro/treestyletab/trunk@4110 599a83e7-65a4-db11-8015-0010dcdd6dc2
This commit is contained in:
piro 2009-04-10 01:35:01 +00:00
parent a25aa91a16
commit eacfbbe4de

View File

@ -15,6 +15,8 @@
);
// stop all
window['piro.sakura.ne.jp'].animationManager.stop();
// restart after doing something
window['piro.sakura.ne.jp'].animationManager.start();
lisence: The MIT License, Copyright (c) 2009 SHIMODA "Piro" Hiroshi
http://www.cozmixng.org/repos/piro/fx3-compatibility-lib/trunk/license.txt
@ -22,7 +24,7 @@
http://www.cozmixng.org/repos/piro/fx3-compatibility-lib/trunk/animationManager.js
*/
(function() {
const currentRevision = 4;
const currentRevision = 5;
if (!('piro.sakura.ne.jp' in window)) window['piro.sakura.ne.jp'] = {};
@ -53,13 +55,8 @@
change : aTotalChange,
duration : aDuration
});
if (this.tasks.length > 1) return;
this.stop();
this.timer = window.setInterval(
this.onAnimation,
this.interval,
this
);
if (this.tasks.length == 1)
this.start();
},
removeTask : function(aTask)
@ -82,6 +79,16 @@
this.stop();
},
start : function()
{
this.stop();
this.timer = window.setInterval(
this.onAnimation,
this.interval,
this
);
},
stop : function()
{
if (!this.timer) return;