code: function handleDirtyChange(event, changedDoc) {
          var currentDoc = DocumentManager.getCurrentDocument();
  
          if (currentDoc && changedDoc.file.fullPath === currentDoc.file.fullPath) {
              _updateTitle();
          }
      }
docs: Handles dirtyFlagChange event and updates the title bar if necessary