Mercurial > MadButterfly
changeset 792:bf2794eed702
Remove redundant code
author | Thinker K.F. Li <thinker@codemud.net> |
---|---|
date | Tue, 31 Aug 2010 02:58:01 +0800 |
parents | 85c5949352bb |
children | cad706a8f5b1 |
files | nodejs/phone.js |
diffstat | 1 files changed, 2 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/nodejs/phone.js Tue Aug 31 02:54:54 2010 +0800 +++ b/nodejs/phone.js Tue Aug 31 02:58:01 2010 +0800 @@ -35,17 +35,13 @@ for(i = 0; i < icons.length; i++) { icon = icons[i]; icon.mouse_event.add_event_observer(1, function(evt) { - var tgt = evt.cur_tgt; - - overholder.go_center(tgt); + overholder.go_center(evt.cur_tgt); }); icon.mouse_event.add_event_observer(2, function(evt) { overholder.home(); }); icon.mouse_event.add_event_observer(4, function(evt) { - var tgt = evt.cur_tgt; - - pressholder.go_center(tgt); + pressholder.go_center(evt.cur_tgt); }); }