mirror of
https://github.com/FoggedLens/iD.git
synced 2026-02-14 17:52:55 +00:00
Fix leaking globals
This commit is contained in:
@@ -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();
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user