diff nodejs/mbfly_njs.cc @ 679:799c852b9065

Extract event info from C object to JS object
author Thinker K.F. Li <thinker@branda.to>
date Fri, 06 Aug 2010 19:31:37 +0800
parents f264b50c469c
children a588eefd3f04
line wrap: on
line diff
--- a/nodejs/mbfly_njs.cc	Fri Aug 06 19:30:52 2010 +0800
+++ b/nodejs/mbfly_njs.cc	Fri Aug 06 19:31:37 2010 +0800
@@ -87,6 +87,10 @@
     subject_o = export_xnjsmb_auto_subject_new(subject);
     SET(root_o, "subject", subject_o);
 
+    subject = X_MB_kbevents(obj->xrt);
+    subject_o = export_xnjsmb_auto_subject_new(subject);
+    SET(self, "kbevent", subject_o);
+
     return obj;
 }