rem: var dbview = GetDBView(); dbview.viewFlags ^= nsMsgViewFlagsType.kThreadedDisplay; dbview.sort(dbview.sortType, dbview.sortOrder); UpdateSortIndicators(dbview.sortType, dbview.sortOrder); 
add: var dbview = GetDBView(); dbview.viewFlags ^= nsMsgViewFlagsType.kThreadedDisplay; dbview.sort(dbview.sortType, dbview.sortOrder); UpdateSortIndicators(dbview.sortType, dbview.sortOrder); 
context: function MsgToggleThreaded(){  var dbview = GetDBView();  dbview.viewFlags ^= nsMsgViewFlagsType.kThreadedDisplay;  dbview.sort(dbview.sortType, dbview.sortOrder); // resort  UpdateSortIndicators(dbview.sortType, dbview.sortOrder);}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/2a90cb5f9981300a1c3fa50788f7af4968a5a124/threadPane.js/clean/mailnews/base/resources/content/threadPane.js