Skip to content
Snippets Groups Projects
Commit a58b9a9b authored by Bekerle, Patrizio's avatar Bekerle, Patrizio :fire: Committed by Reiter, Christoph
Browse files

Move "that" variable declaration

parent e914729e
No related branches found
No related tags found
No related merge requests found
...@@ -27,10 +27,9 @@ class PersonSelect extends VPULitElementJQuery { ...@@ -27,10 +27,9 @@ class PersonSelect extends VPULitElementJQuery {
connectedCallback() { connectedCallback() {
super.connectedCallback(); super.connectedCallback();
i18n.changeLanguage(this.lang); i18n.changeLanguage(this.lang);
const that = this;
this.updateComplete.then(()=>{ this.updateComplete.then(()=>{
const that = this;
JSONLD.initialize(utils.getAPiUrl(), function (jsonld) { JSONLD.initialize(utils.getAPiUrl(), function (jsonld) {
that.jsonld = jsonld; that.jsonld = jsonld;
const $select = that.initSelect2(); const $select = that.initSelect2();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment