From f168efb69c0387da0be4e9f2807fd9074992346f Mon Sep 17 00:00:00 2001 From: toasted-nutbread Date: Fri, 11 Sep 2020 14:15:08 -0400 Subject: OptionsUtil refactor / options default values (#807) * Replace _readFile with _fetchAsset for consistency with Backend * Fix error messages * Make OptionsUtil non-static * Update how default options are assigned * Add createValidatingProxy * Add validate, update _onApiSetAllSettings * Remove unused api.optionsSchemaGet * Remove Backend._optionsSchema * Update OptionsUtil to create its own JsonSchemaValidator * Rename Backend._optionsSchemaValidator * Make getDefault non-async --- ext/mixed/js/api.js | 4 ---- 1 file changed, 4 deletions(-) (limited to 'ext/mixed') diff --git a/ext/mixed/js/api.js b/ext/mixed/js/api.js index 1e7625da..fce8fbee 100644 --- a/ext/mixed/js/api.js +++ b/ext/mixed/js/api.js @@ -49,10 +49,6 @@ const api = (() => { // Invoke functions - optionsSchemaGet() { - return this._invoke('optionsSchemaGet'); - } - optionsGet(optionsContext) { return this._invoke('optionsGet', {optionsContext}); } -- cgit v1.2.3