add:    window.updateCommands("create"); 
context:   NotifyDocumentStateChanged:function( isNowDirty )  {    /* Notify our dirty detector so this window won't be closed if       another document is opened */    if (isNowDirty)      docWasModified = true;  }
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/035965297dd3eee99dadbd7c3a6f8560d975d3ea/EditorCommands.js/buggy/editor/ui/composer/content/EditorCommands.js