Skip to content

Commit e9e8adb

Browse files
committed
syntax
1 parent e70e521 commit e9e8adb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/components/titles/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,8 +156,9 @@ function draw(gd, titleClass, options) {
156156
el.exit().remove();
157157

158158
var subtitleEl = null;
159+
var subtitleClass = titleClass + '-subtitle';
160+
159161
if(subtitleEnabled && (subtitleTxt || editable)) {
160-
var subtitleClass = titleClass + '-subtitle';
161162
var subtitleElShouldExist = subtitleTxt || editable;
162163
subtitleEl = group.selectAll('text.' + subtitleClass)
163164
.data(subtitleElShouldExist ? [0] : []);

0 commit comments

Comments
 (0)