mirror of https://github.com/doccano/doccano.git
Browse Source
Previously some of the Vue code relied on script tags being present in the host application, to include dependencies such as lodash or marked. This is not ideal for encapsulation since it means the Vue components are not self-contained, makes testing harder, etc. As such, this change replaces the script tag includes with ES6 imports. Additionally, the lodash dependency (which was used only for debouncing) is replaced in this change with the vue-debounce library which offers a debouncing directive. This simplifies the code and avoids potential gotchas with the this context in the debounced function.pull/145/head
Clemens Wolff
5 years ago
7 changed files with 22 additions and 14 deletions
Loading…