Changeset 259019 in webkit


Ignore:
Timestamp:
Mar 25, 2020 4:19:32 PM (4 years ago)
Author:
zhifei_fang@apple.com
Message:

[Timeline] A better default get label function, which fit the assumpation the label is always a string
https://bugs.webkit.org/show_bug.cgi?id=209567

Reviewed by Jonathan Bedard.

  • resultsdbpy/resultsdbpy/view/static/library/js/components/TimelineComponents.js:
Location:
trunk/Tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r259017 r259019  
     12020-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
    1102020-03-25  Zhifei Fang  <zhifei_fang@apple.com>
    211
  • trunk/Tools/resultsdbpy/resultsdbpy/view/static/library/js/components/TimelineComponents.js

    r259017 r259019  
    610610    const onScaleLeave = typeof option.onScaleLeave === "function" ? option.onScaleLeave : null;
    611611    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}`;
    613613    const isTop = typeof option.isTop === "boolean" ? option.isTop : false;
    614614
Note: See TracChangeset for help on using the changeset viewer.