Mercurial > MadButterfly
diff nodejs/mbapp.js @ 762:6133319d3fb4
Add udpate command
author | wycc |
---|---|
date | Sat, 28 Aug 2010 23:11:02 +0800 |
parents | 1719484ed15d |
children | 37a1bd3e3ce1 |
line wrap: on
line diff
--- 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]; }