transition callback is now executed immediately after final node draw

This commit is contained in:
Eric Rowell 2012-07-31 21:01:48 -07:00
parent 75b20573cd
commit b7ac415ea6
3 changed files with 10 additions and 10 deletions

View File

@ -1882,12 +1882,12 @@ Kinetic.Node = Kinetic.Class.extend({
a._removeAnimation(anim);
that.transAnim = null;
anim.node.draw();
// callback
if(config.callback !== undefined) {
if(config.callback) {
config.callback();
}
anim.node.draw();
};
// auto start
trans.start();

File diff suppressed because one or more lines are too long

View File

@ -709,12 +709,12 @@ Kinetic.Node = Kinetic.Class.extend({
a._removeAnimation(anim);
that.transAnim = null;
anim.node.draw();
// callback
if(config.callback !== undefined) {
if(config.callback) {
config.callback();
}
anim.node.draw();
};
// auto start
trans.start();