diff nodejs/coord.m4 @ 1372:0afd598a0b30

Add clone_from_subtree() for coord object of nodejs
author Thinker K.F. Li <thinker@codemud.net>
date Mon, 07 Mar 2011 09:38:09 +0800
parents 2bcacd29d95f
children f02b39079ab0
line wrap: on
line diff
--- a/nodejs/coord.m4	Sun Mar 06 19:31:28 2011 +0800
+++ b/nodejs/coord.m4	Mon Mar 07 09:38:09 2011 +0800
@@ -8,6 +8,9 @@
 	[METHOD([add_shape], [xnjsmb_coord_add_shape],
 		(SELF, OBJ([shape], [shape], [shape_t]), ERR), 1, []),
 	 METHOD([remove], [xnjsmb_coord_remove], (SELF), 0, []),
+	 METHOD([clone_from_subtree], [xnjsmb_coord_clone_from_subtree],
+	 	(SELF, OBJ([src], [coord], [coord_t]), ERR), 1,
+		[OBJ([coord], [coord_t])]),
 	 METHOD([show], [xnjsmb_coord_show], (SELF), 0, []),
 	 METHOD([hide], [xnjsmb_coord_hide], (SELF), 0, [])],
 	((GET_INDEX, (coord_get_index, NUMBER)),