mirror of
https://github.com/konvajs/konva.git
synced 2025-09-18 18:27:58 +08:00
removed Sprite afterFrame func. The same functionality can be achieved by listening to indexChange event
This commit is contained in:
@@ -108,9 +108,10 @@ suite('Sprite', function() {
|
||||
// kick once
|
||||
setTimeout(function() {
|
||||
sprite.setAnimation('kicking');
|
||||
|
||||
sprite.afterFrame(5, function() {
|
||||
sprite.setAnimation('standing');
|
||||
sprite.on('indexChange', function(evt) {
|
||||
if (evt.newVal === 0 && this.getAnimation() === 'kicking') {
|
||||
sprite.setAnimation('standing');
|
||||
}
|
||||
});
|
||||
}, 2000);
|
||||
setTimeout(function() {
|
||||
|
Reference in New Issue
Block a user