diff --git a/js/trackBase.js b/js/trackBase.js index 3f977ea0d..35770d6c5 100644 --- a/js/trackBase.js +++ b/js/trackBase.js @@ -47,6 +47,8 @@ const fixColor = (colorString) => { */ class TrackBase { + static defaultColor = 'rgb(150,150,150)' + static defaults = { height: 50, autoHeight: false, diff --git a/js/trackView.js b/js/trackView.js index 16a0c1c1c..7739ce1cd 100644 --- a/js/trackView.js +++ b/js/trackView.js @@ -212,7 +212,7 @@ class TrackView { this.track.initialTrackColor = {} } - const color = this.track.color || this.track.defaultColor + const color = this.track.color || this.track.constructor.defaultColor if (StringUtils.isString(color)) { if (undefined === this.track.initialTrackColor['color']) {