changeset 704:d950487bd9f9

Flush mb_rt, immediately, after redraw_all()
author Thinker K.F. Li <thinker@branda.to>
date Fri, 13 Aug 2010 11:10:49 +0800
parents 3457519e3b9c
children efcbcb750d63
files nodejs/svg.js nodejs/testcase.js
diffstat 2 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/nodejs/svg.js	Fri Aug 13 08:16:18 2010 +0800
+++ b/nodejs/svg.js	Fri Aug 13 11:10:49 2010 +0800
@@ -309,3 +309,4 @@
 
 MB_loadSVG(mb_rt,mb_rt.root,"test.svg");
 mb_rt.redraw_all();
+mb_rt.flush();
--- a/nodejs/testcase.js	Fri Aug 13 08:16:18 2010 +0800
+++ b/nodejs/testcase.js	Fri Aug 13 11:10:49 2010 +0800
@@ -50,6 +50,7 @@
 coord.add_shape(stext);
 
 mb_rt.redraw_all();
+mb_rt.flush();
 
 var i = 0;
 setInterval(function() {