Skip to content

Commit 3190382

Browse files
committed
re-add removed comment
1 parent 7e9fcf9 commit 3190382

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/components/titles/index.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,10 @@ function draw(gd, titleClass, options) {
104104

105105
function matchesPlaceholder(text, placeholder) {
106106
if(text === undefined || placeholder === undefined) return false;
107+
// look for placeholder text while stripping out numbers from eg X2, Y3
108+
// this is just for backward compatibility with the old version that had
109+
// "Click to enter X2 title" and may have gotten saved in some old plots,
110+
// we don't want this to show up when these are displayed.
107111
return text.replace(numStripRE, ' % ') === placeholder.replace(numStripRE, ' % ');
108112
}
109113

0 commit comments

Comments
 (0)