Mercurial > MadButterfly
diff nodejs/testcase.js @ 680:a588eefd3f04
Refactor to xnjsmb_coord_mod().
Move code of initializing attributes of JS coord objects to
xnjsmb_coord_mod().
author | Thinker K.F. Li <thinker@branda.to> |
---|---|
date | Fri, 06 Aug 2010 22:56:58 +0800 |
parents | 799c852b9065 |
children | b601a4d6f7d1 |
line wrap: on
line diff
--- a/nodejs/testcase.js Fri Aug 06 19:31:37 2010 +0800 +++ b/nodejs/testcase.js Fri Aug 06 22:56:58 2010 +0800 @@ -52,10 +52,10 @@ }, 20); setTimeout(function() { sys.puts("timeout"); }, 1000); -sys.puts(root.subject); +sys.puts(root.mouse_event); var observer; /* Mouse button pressed */ -observer = root.subject.add_event_observer(4, function(evt) { +observer = root.mouse_event.add_event_observer(4, function(evt) { sys.puts("mouse " + evt.x + " " + evt.y); });