diff nodejs/shapes.cc @ 671:fc29a343ce7c

Track JS object with property store of objects
author Thinker K.F. Li <thinker@branda.to>
date Thu, 05 Aug 2010 17:43:33 +0800
parents a65720721c60
children c643af2095c5
line wrap: on
line diff
--- a/nodejs/shapes.cc	Thu Aug 05 17:42:36 2010 +0800
+++ b/nodejs/shapes.cc	Thu Aug 05 17:43:33 2010 +0800
@@ -145,6 +145,7 @@
 
     WRAP(self, sh);
     SET(self, "mbrt", rt);
+    mb_prop_set(&sh->obj.props, PROP_JSOBJ, *self);
 
     return Null();
 }
@@ -235,6 +236,7 @@
 
     WRAP(self, stext);
     SET(self, "mbrt", rt);
+    mb_prop_set(&stext->obj.props, PROP_JSOBJ, *self);
 
     return Null();
 }
@@ -370,6 +372,7 @@
 
     WRAP(self, img);
     SET(self, "mbrt", rt);
+    mb_prop_set(&img->obj.props, PROP_JSOBJ, *self);
 
     return Null();
 }