rem: $('.exec_code input.input').keyup(function(e) { var code = e.keyCode || e.which; if (code == 100 || e.ctrlKey) { $('.output', $(this).parent()).empty(); return false; } else if (code == 38 || code == 40) { var parent = $(this).parent(); var tb = $('input[@name="tb"]', parent).attr('value'); var frame = $('input[@name="frame"]', parent).attr('value'); console.debug(tb, frame, parent); if (code == 38) backInHistory(tb, frame, this); else forwardInHistory(tb, frame, this); } 
add: $('.code').click(function() { $('.pre', $(this)).toggle(); $('.post', $(this)).toggle(); 
context:   $('.exec_code input.input').keyup(function(e) {    var code = e.keyCode || e.which;    if (code == 100 || e.ctrlKey) {      $('.output', $(this).parent()).empty();      return false;    }    else if (code == 38 || code == 40) {      var parent = $(this).parent();      var tb = $('input[@name="tb"]', parent).attr('value');      var frame = $('input[@name="frame"]', parent).attr('value');      console.debug(tb, frame, parent);      if (code == 38)        backInHistory(tb, frame, this);      else        forwardInHistory(tb, frame, this);    }  });
meta: 4786	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/4786/0e2b1e6a233b11b09b717ff94ba64c31bd76f2aa/debugger.js/buggy/werkzeug/debug/shared/debugger.js