# HG changeset patch # User Thinker K.F. Li # Date 1281888841 -28800 # Node ID 8af3b87b502e59eac07c2708be3ee0d0b92a111d # Parent f95d58a8edd16af9432e8352543461d3cd2c0b1b Correct syntax if a statement diff -r f95d58a8edd1 -r 8af3b87b502e nodejs/testsvg.js --- a/nodejs/testsvg.js Sun Aug 15 19:44:09 2010 +0800 +++ b/nodejs/testsvg.js Mon Aug 16 00:14:01 2010 +0800 @@ -4,9 +4,9 @@ app = new mbapp.app(); app.loadSVG("test.svg"); -lightbar = app.get("item_lightbar") -item=1 -lightbar[5] = app.get("item"+item)[5] +lightbar = app.get("item_lightbar"); +item=1; +lightbar[5] = app.get("item"+item)[5]; function animated(app,obj) { var d=obj.animated_loc - obj[5];