mirror of
https://github.com/keymanapp/keyman.git
synced 2026-08-09 10:25:32 +00:00
change(web): drops unnecessary context getter
This commit is contained in:
parent
a8ca07243a
commit
3f9b4e498d
1 changed files with 2 additions and 11 deletions
|
|
@ -18,7 +18,7 @@ export class ContextState {
|
|||
* The context window in view for the represented Context state,
|
||||
* as passed between the predictive-text worker and its host.
|
||||
*/
|
||||
private _context: Context;
|
||||
readonly context: Context;
|
||||
|
||||
/**
|
||||
* The active lexical model operating upon the Context.
|
||||
|
|
@ -88,8 +88,7 @@ export class ContextState {
|
|||
constructor(context: Context, model: LexicalModel, tokenization?: ContextTokenization);
|
||||
constructor(param1: Context | ContextState, model?: LexicalModel, tokenization?: ContextTokenization) {
|
||||
if(!(param1 instanceof ContextState)) {
|
||||
const context = param1;
|
||||
this._context = context;
|
||||
this.context = param1;
|
||||
this.model = model;
|
||||
if(tokenization) {
|
||||
this.tokenization = tokenization;
|
||||
|
|
@ -111,14 +110,6 @@ export class ContextState {
|
|||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* The context window in view for the represented Context state,
|
||||
* as passed between the predictive-text worker and its host.
|
||||
*/
|
||||
get context(): Context {
|
||||
return this._context;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes the ContextState instance for use when no valid prior
|
||||
* information is available - typically, immediately after engine
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue