# HG changeset patch # User Thinker K.F. Li # Date 1285474626 -28800 # Node ID 3457f2d8b0b8624c11ec0d77eb9e5751cbbe94cb # Parent 2b492008ce2651f60e30634ed58cdbcf85edc988 Only redraw changed when calling app.refresh() in JS diff -r 2b492008ce26 -r 3457f2d8b0b8 nodejs/mbapp.js --- 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() {