# HG changeset patch # User wycc # Date 1283008262 -28800 # Node ID 6133319d3fb4a0c2a93fa9b6de11c8bc39df453a # Parent cf60cf8983f8823ff8abdf2aa6e77bb4770368b0 Add udpate command diff -r cf60cf8983f8 -r 6133319d3fb4 nodejs/mbapp.js --- a/nodejs/mbapp.js Sat Aug 28 23:09:58 2010 +0800 +++ b/nodejs/mbapp.js Sat Aug 28 23:11:02 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]; }