Changeset 259019 in webkit
- Timestamp:
- Mar 25, 2020 4:19:32 PM (4 years ago)
- Location:
- trunk/Tools
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Tools/ChangeLog
r259017 r259019 1 2020-03-25 Zhifei Fang <zhifei_fang@apple.com> 2 3 [Timeline] A better default get label function, which fit the assumpation the label is always a string 4 https://bugs.webkit.org/show_bug.cgi?id=209567 5 6 Reviewed by Jonathan Bedard. 7 8 * resultsdbpy/resultsdbpy/view/static/library/js/components/TimelineComponents.js: 9 1 10 2020-03-25 Zhifei Fang <zhifei_fang@apple.com> 2 11 -
trunk/Tools/resultsdbpy/resultsdbpy/view/static/library/js/components/TimelineComponents.js
r259017 r259019 610 610 const onScaleLeave = typeof option.onScaleLeave === "function" ? option.onScaleLeave : null; 611 611 const sortData = option.sortData === true ? option.sortData : false; 612 const getLabel = typeof option.getLabelFunc === "function" ? option.getLabelFunc : (a) => a;612 const getLabel = typeof option.getLabelFunc === "function" ? option.getLabelFunc : (a) => `${a}`; 613 613 const isTop = typeof option.isTop === "boolean" ? option.isTop : false; 614 614
Note: See TracChangeset
for help on using the changeset viewer.