Mercurial > MadButterfly
comparison nodejs/mbapp.js @ 762:6133319d3fb4
Add udpate command
author | wycc |
---|---|
date | Sat, 28 Aug 2010 23:11:02 +0800 |
parents | 1719484ed15d |
children | 37a1bd3e3ce1 |
comparison
equal
deleted
inserted
replaced
761:cf60cf8983f8 | 762:6133319d3fb4 |
---|---|
23 if (this.onKeyPress) this.onKeyPress(evt.sym); | 23 if (this.onKeyPress) this.onKeyPress(evt.sym); |
24 if (evt.sym in this.keymap) this.keymap[evt.sym](); | 24 if (evt.sym in this.keymap) this.keymap[evt.sym](); |
25 } | 25 } |
26 | 26 |
27 app.prototype.loop=function() { | 27 app.prototype.loop=function() { |
28 this.mb_rt.redraw_all(); | |
29 this.mb_rt.flush(); | |
30 } | |
31 app.prototype.update=function() { | |
28 this.mb_rt.redraw_all(); | 32 this.mb_rt.redraw_all(); |
29 this.mb_rt.flush(); | 33 this.mb_rt.flush(); |
30 } | 34 } |
31 app.prototype.get=function(name) { | 35 app.prototype.get=function(name) { |
32 return this.mb_rt.mbnames[name]; | 36 return this.mb_rt.mbnames[name]; |