# HG changeset patch # User wycc # Date 1283008776 -28800 # Node ID 69ee361bf259a86fed447e58a66616d35b88cf04 # Parent 6133319d3fb4a0c2a93fa9b6de11c8bc39df453a# Parent 5781b2485e38ef67c859246ea6bcd97dec2db6bf Merge diff -r 5781b2485e38 -r 69ee361bf259 nodejs/mbapp.js --- a/nodejs/mbapp.js Sat Aug 28 22:54:07 2010 +0800 +++ b/nodejs/mbapp.js Sat Aug 28 23:19:36 2010 +0800 @@ -28,6 +28,10 @@ this.mb_rt.redraw_all(); this.mb_rt.flush(); } +app.prototype.update=function() { + this.mb_rt.redraw_all(); + this.mb_rt.flush(); +} app.prototype.get=function(name) { return this.mb_rt.mbnames[name]; } diff -r 5781b2485e38 -r 69ee361bf259 nodejs/testcanvas.js --- a/nodejs/testcanvas.js Sat Aug 28 22:54:07 2010 +0800 +++ b/nodejs/testcanvas.js Sat Aug 28 23:19:36 2010 +0800 @@ -1,3 +1,4 @@ +// vim: ts=4 var mbapp = require("./mbapp"); var sys=require("sys"); var canvas=require("./canvas");