Mercurial > MadButterfly
diff nodejs/animate.js @ 937:191d3a5f74c8
Migrate testsvg.js to new interface of shift action.
author | Thinker K.F. Li <thinker@codemud.net> |
---|---|
date | Fri, 12 Nov 2010 16:54:48 +0800 |
parents | d35f9702b8c2 |
children | 4072a302b207 |
line wrap: on
line diff
--- a/nodejs/animate.js Fri Nov 12 16:53:03 2010 +0800 +++ b/nodejs/animate.js Fri Nov 12 16:54:48 2010 +0800 @@ -15,12 +15,12 @@ x = (this.targetx - this.startposx) * percent + this.startposx; y = (this.targety - this.startposy) * percent + this.startposy; this.obj.center.move(x, y); - this.app.refresh(); + this._app.refresh(); } function shift(app,obj,shiftx,shifty) { obj.animated_shift = this; - this.app = app; + this._app = app; this.obj = obj; this.end = 0; this.targetx = shiftx + obj.center.x;