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