rem: getSelectedSlot(); 
add: getSelectedItem(); 
context: function doLogout(){  getSelectedSlot();  // here's the workaround - login functions are with token  var selected_token = selected_slot.getToken();  try {    selected_token.logout(false);    var tok_status = document.getElementById("tok_status");    if (selected_token.isLoggedIn()) {      tok_status.setAttribute("label",                           bundle.GetStringFromName("devinfo_stat_loggedin"));    } else {      tok_status.setAttribute("label",                       bundle.GetStringFromName("devinfo_stat_notloggedin"));    }  } catch (e) {  }  enableButtons();}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/65c061212d2e3f9108776361db9b5d7f1f82b6b4/device_manager.js/clean/security/manager/pki/resources/content/device_manager.js