Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

Commit

Permalink
Make items private
Browse files Browse the repository at this point in the history
  • Loading branch information
aminya committed Jan 6, 2021
1 parent f43e920 commit 246ff18
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/select-list-view.ts
Expand Up @@ -15,7 +15,7 @@ module.exports = class SelectListView {
props: SelectListProperties

/** an array containing the objects you want to show in the select list. */
items: Array<object | string> // TODO: Added initializer! Either fix this.items or assign it in constructor
private items: Array<object | string>

private disposables: CompositeDisposable
private element: EtchElement
Expand All @@ -35,7 +35,7 @@ module.exports = class SelectListView {

constructor (props: SelectListProperties) {
this.props = props
this.items = props.items // TODO: Added initializer! Either fix this.items or assign it in constructor
this.items = props.items

if (!this.props.hasOwnProperty('initialSelectionIndex')) {
this.props.initialSelectionIndex = 0
Expand Down

0 comments on commit 246ff18

Please sign in to comment.