Mercurial > MadButterfly
changeset 762:6133319d3fb4
Add udpate command
author | wycc |
---|---|
date | Sat, 28 Aug 2010 23:11:02 +0800 |
parents | cf60cf8983f8 |
children | 69ee361bf259 |
files | nodejs/mbapp.js |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
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]; }