Fix leaking globals

This commit is contained in:
Ansis Brammanis
2013-02-21 11:48:23 -05:00
parent 2c9f044e52
commit efddd7267a
2 changed files with 3 additions and 4 deletions

View File

@@ -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();

View File

@@ -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);
}