# HG changeset patch # User Thinker K.F. Li # Date 1302676592 -28800 # Node ID 6644ef3d75ebf92f32670bcadc24789e10ce9445 # Parent ef3908d9a3d2480a5715fd3cc84ef1c06f396442 Add get_child method for coord in JS diff -r ef3908d9a3d2 -r 6644ef3d75eb nodejs/coord.m4 --- a/nodejs/coord.m4 Tue Apr 12 14:50:10 2011 +0800 +++ b/nodejs/coord.m4 Wed Apr 13 14:36:32 2011 +0800 @@ -13,7 +13,9 @@ [OBJ([coord], [coord_t])], (([MOD], [_xnjsmb_coord_clone_from_subtree_mod]))), METHOD([show], [xnjsmb_coord_show], (SELF), 0, []), - METHOD([hide], [xnjsmb_coord_hide], (SELF), 0, [])], + METHOD([hide], [xnjsmb_coord_hide], (SELF), 0, []), + METHOD([get_child], [xnjsmb_coord_get_child], + (SELF, INT(idx), ERR), 1, [VAL])], ((GET_INDEX, (coord_get_index, NUMBER)), (SET_INDEX, (coord_set_index, NUMBER)), ([STMOD], [xnjsmb_coord_mod])))