change hidden logic, allow tests to pass
This commit is contained in:
parent
a5b5d968a3
commit
b6b1eec038
|
@ -100,8 +100,9 @@ define(function (require) {
|
|||
|
||||
return el.append('ul')
|
||||
.attr('class', function () {
|
||||
if (self.vis.get('legendOpen')) { return 'legend-ul'; }
|
||||
return 'legend-ul hidden';
|
||||
var className = 'legend-ul';
|
||||
if (self.vis && !self.vis.get('legendOpen')) className += ' hidden';
|
||||
return className;
|
||||
})
|
||||
.selectAll('li')
|
||||
.data(data)
|
||||
|
|
Loading…
Reference in a new issue