rem: var isDirty = theButton.getAttribute("dirty"); 
add: var isDirty = theButton.getAttribute("dirty"); 
context: function onDirtyChange(){  // this should happen through style, but that doesn't seem to work.  var theButton = document.getElementById("saveButton");  if (theButton)  {	var isDirty = theButton.getAttribute("dirty");    if (isDirty == "true") {      theButton.setAttribute("src", "chrome://editor/skin/images/ED_SaveMod.gif");    } else {      theButton.setAttribute("src", "chrome://editor/skin/images/ED_SaveFile.gif");    }  }}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/25771bd9e4d7db6905ed7b17947434267aa09319/EditorCommands.js/buggy/editor/ui/composer/content/EditorCommands.js