Mercurial > MadButterfly
diff nodejs/mbapp.js @ 886:3457f2d8b0b8 abs_n_rel_center
Only redraw changed when calling app.refresh() in JS
author | Thinker K.F. Li <thinker@codemud.net> |
---|---|
date | Sun, 26 Sep 2010 12:17:06 +0800 |
parents | 6c8e4e1f3a39 |
children | 0a4b92e4ff75 |
line wrap: on
line diff
--- a/nodejs/mbapp.js Sun Sep 26 00:54:12 2010 +0800 +++ b/nodejs/mbapp.js Sun Sep 26 12:17:06 2010 +0800 @@ -126,7 +126,7 @@ return this.mb_rt.kbevents.add_event_observer(type,f); } app.prototype.refresh=function() { - this.mb_rt.redraw_all(); + this.mb_rt.redraw_changed(); this.mb_rt.flush(); } app.prototype.dump=function() {