# HG changeset patch # User wycc # Date 1288826477 -28800 # Node ID d35f9702b8c2321054956d5b6fb8d81b355e69f5 # Parent 35b6a9411e26d3d94cee1b1b82d2445a74f84e52 Fix the bug when the last scale is issued before the last one is ended. diff -r 35b6a9411e26 -r d35f9702b8c2 nodejs/animate.js --- a/nodejs/animate.js Wed Nov 03 22:02:23 2010 +0800 +++ b/nodejs/animate.js Thu Nov 04 07:21:17 2010 +0800 @@ -84,6 +84,7 @@ function scale_draw(percent) { + if (this.end==1) return; var sx = 1 + (this.totalsx - 1) * percent; var sy = 1 + (this.totalsy - 1) * percent; var sh1 = [1, 0, -this.center_x, 0, 1, -this.center_y];