diff options
| author | Shulhan <ms@kilabit.info> | 2021-08-28 22:23:27 +0700 |
|---|---|---|
| committer | Shulhan <ms@kilabit.info> | 2021-08-28 22:24:51 +0700 |
| commit | c246299101e47c28e064dbeacdbe718909bd7f17 (patch) | |
| tree | 71ba2799017c5172b4b917ed0b73d4bd17584f8a /editor/editor.js | |
| parent | 50c57f048eecab68570a0568f20922044935ecca (diff) | |
| download | pakakeh.ts-c246299101e47c28e064dbeacdbe718909bd7f17.tar.xz | |
all: use the WuiResponseInterface for non-void return type
This commit changes the WuiVfsOptions.istNodes and
WuiEditorOptions.OpenFile to WuiResponseInterface.
WuiResponseInterface define an interface that will be returned by function
or method with non-void type.
If the function/method success, the code should be set to 200 (equal to
HTTP OK), and the data will contains the expected data for that function.
If the function/method call failed, the code should be set to other value
beside 200 with a message describe why its failed.
Diffstat (limited to 'editor/editor.js')
| -rw-r--r-- | editor/editor.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/editor/editor.js b/editor/editor.js index 3f0bad2..d6f0f1f 100644 --- a/editor/editor.js +++ b/editor/editor.js @@ -46,6 +46,7 @@ var WUI_EDITOR_CLASS_LINE_NUMBER = "wui_editor_line_number"; var WUI_EDITOR_CLASS_LINE_TEXT = "wui_editor_line_text"; var WuiEditor = /** @class */ (function () { function WuiEditor(opts) { + var _this = this; this.opts = opts; this.active_file = null; this.active_text = null; |
