diff --git a/js/id/ui/tageditor.js b/js/id/ui/tageditor.js index ca348f935..ef9025e46 100644 --- a/js/id/ui/tageditor.js +++ b/js/id/ui/tageditor.js @@ -30,12 +30,12 @@ iD.ui.TagEditor = function() { var headerwrap = editorwrap.append('div').attr('class','col12 head'); - typewrap = headerwrap.append('div') + var typewrap = headerwrap.append('div') .attr('class','col3 type inspector-inner'); typewrap.append('h4').text('Type'); - typelabel = typewrap.append('button') + var typelabel = typewrap.append('button') .attr('class','col12') .on('click', function() { event.choose(); diff --git a/js/id/ui/taglist.js b/js/id/ui/taglist.js index 408571a20..388ac90be 100644 --- a/js/id/ui/taglist.js +++ b/js/id/ui/taglist.js @@ -8,7 +8,7 @@ iD.ui.Taglist = function() { function taglist(selection, collapsed) { if (collapsed) { - collapsebutton = selection.append('a') + var collapsebutton = selection.append('a') .attr('href','#') .attr('class','hide-toggle') .text('Additional tags') @@ -39,7 +39,6 @@ iD.ui.Taglist = function() { .attr('class', 'label') .text(t('inspector.new_tag')); - collapsebutton.classed('expanded', !collapsed); wrap.classed('hide', collapsed); }