From 40d65e78c227b490fdc906377776a48e686bcdbc Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Fri, 21 Feb 2020 08:27:48 -0500 Subject: [PATCH] Allow ReferenceLine to take a custom description. --- src/Line.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Line.ts b/src/Line.ts index 5e4773b..6a7b791 100644 --- a/src/Line.ts +++ b/src/Line.ts @@ -42,8 +42,8 @@ export class ReferenceLine extends Line { private _form: string; private _line: string; - constructor(id: string, form: string, line: string) { - super(id, `Reference F${form}.L${line}`); + constructor(id: string, form: string, line: string, description?: string) { + super(id, description || `Reference F${form}.L${line}`); this._form = form; this._line = line; } -- 2.22.5