changeset 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 2b492008ce26
children 8a2d676d9fa3
files nodejs/mbapp.js
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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() {