Skip to content

Commit

Permalink
fix: overriding property with a getter/seter
Browse files Browse the repository at this point in the history
  • Loading branch information
rigor789 committed Sep 15, 2020
1 parent f5b7fa7 commit 6184fbb
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion packages/runtime/src/nodes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,14 @@ export abstract class NSVNode implements INSVNode {

nodeId: number
nodeType: NSVNodeTypes
text: string | undefined

private _text?: string | undefined
public get text(): string | undefined {
return this._text
}
public set text(value: string | undefined) {
this._text = value
}

parentNode: INSVElement | null = null
childNodes: INSVNode[] = []
Expand Down

0 comments on commit 6184fbb

Please sign in to comment.