comparison nodejs/phone.js @ 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
comparison
equal deleted inserted replaced
791:85c5949352bb 792:bf2794eed702
33 var i; 33 var i;
34 var icon; 34 var icon;
35 for(i = 0; i < icons.length; i++) { 35 for(i = 0; i < icons.length; i++) {
36 icon = icons[i]; 36 icon = icons[i];
37 icon.mouse_event.add_event_observer(1, function(evt) { 37 icon.mouse_event.add_event_observer(1, function(evt) {
38 var tgt = evt.cur_tgt; 38 overholder.go_center(evt.cur_tgt);
39
40 overholder.go_center(tgt);
41 }); 39 });
42 icon.mouse_event.add_event_observer(2, function(evt) { 40 icon.mouse_event.add_event_observer(2, function(evt) {
43 overholder.home(); 41 overholder.home();
44 }); 42 });
45 icon.mouse_event.add_event_observer(4, function(evt) { 43 icon.mouse_event.add_event_observer(4, function(evt) {
46 var tgt = evt.cur_tgt; 44 pressholder.go_center(evt.cur_tgt);
47
48 pressholder.go_center(tgt);
49 }); 45 });
50 } 46 }
51 47
52 var sw = 0; 48 var sw = 0;
53 dock.mouse_event.add_event_observer(4, function(evt) { 49 dock.mouse_event.add_event_observer(4, function(evt) {