Mercurial > MadButterfly
comparison nodejs/observer.cc @ 676:f264b50c469c
Bind subject of mouse_event to JS object of coord
author | Thinker K.F. Li <thinker@branda.to> |
---|---|
date | Fri, 06 Aug 2010 13:33:47 +0800 |
parents | c643af2095c5 |
children | 799c852b9065 |
comparison
equal
deleted
inserted
replaced
675:c643af2095c5 | 676:f264b50c469c |
---|---|
91 ASSERT(!evt_obj.IsEmpty()); | 91 ASSERT(!evt_obj.IsEmpty()); |
92 func_args[0] = evt_obj; | 92 func_args[0] = evt_obj; |
93 data->func->Call(Context::GetCurrent()->Global(), 1, func_args); | 93 data->func->Call(Context::GetCurrent()->Global(), 1, func_args); |
94 } | 94 } |
95 | 95 |
96 Handle<Value> | |
97 export_xnjsmb_auto_subject_new(subject_t *subject) { | |
98 Handle<Value> val; | |
99 | |
100 val = xnjsmb_auto_subject_new(subject); | |
101 return val; | |
102 } | |
103 | |
96 void | 104 void |
97 xnjsmb_observer_init(void) { | 105 xnjsmb_observer_init(void) { |
98 xnjsmb_auto_observer_init(); | 106 xnjsmb_auto_observer_init(); |
99 xnjsmb_auto_subject_init(); | 107 xnjsmb_auto_subject_init(); |
100 xnjsmb_auto_event_init(); | 108 xnjsmb_auto_event_init(); |