rem: var isOn = theButton.getAttribute(theStyle); if (isOn == "true") { theButton.setAttribute("toggled", 1); } else { theButton.setAttribute("toggled", 0); } 
add:  theButton.setAttribute("toggled", (isOn == "true") ? 1 : 0); }  var theMenuItem = document.getElementById(theStyle + "MenuItem"); if (theMenuItem) {  theMenuItem.setAttribute("checked", isOn); 
context: function onStyleChange(theStyle){  var theButton = document.getElementById(theStyle + "Button");  if (theButton)  {	var isOn = theButton.getAttribute(theStyle);	if (isOn == "true") {      theButton.setAttribute("toggled", 1);    } else {      theButton.setAttribute("toggled", 0);    }  }}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/29ea7a1c6192e33e6fcc6bac2ce19e379b81ba64/EditorCommands.js/clean/editor/ui/composer/content/EditorCommands.js