diff --git a/js/id/ui.js b/js/id/ui.js index 7214628b4..9fec273cd 100644 --- a/js/id/ui.js +++ b/js/id/ui.js @@ -188,14 +188,11 @@ iD.ui = function(context) { }; history.on('change.editor', function() { - var undo = history.undoAnnotation(), redo = history.redoAnnotation(); function refreshTooltip(selection) { - if (selection.property('disabled')) { - selection.call(undo_tooltip.hide); - } else if (selection.property('tooltipVisible')) { + if (selection.property('tooltipVisible')) { selection.call(undo_tooltip.show); } }