code: function(ed, cm, n) {
  			var ed = this.editor;
  
  			if (ed.getParam('save_enablewhendirty')) {
  				cm.setDisabled('save', !ed.isDirty());
  				cm.setDisabled('cancel', !ed.isDirty());
  			}
  		}
docs: Private methods