Etemplate: Bugfixes

- Early exit for arrayMgr().getEntry() if nothing is found, avoids returning all data
- Remove debugger from selectbox
This commit is contained in:
nathangray 2021-01-04 11:00:10 -07:00
parent 5c10576b3b
commit cf9c366d2b
4 changed files with 3 additions and 2 deletions

View File

@ -178,6 +178,8 @@ var et2_arrayMgr = /** @class */ (function () {
}
// Parse the given key by removing the "]"-chars and splitting at "["
var indexes = this.explodeKey(_key);
if (indexes.length == 0 && _skipEmpty)
return null;
var entry = this.data;
for (var i = 0; i < indexes.length; i++) {
// Abort if the current entry is not an object (associative array) and

View File

@ -190,6 +190,7 @@ export class et2_arrayMgr
// Parse the given key by removing the "]"-chars and splitting at "["
const indexes = this.explodeKey(_key);
if(indexes.length == 0 && _skipEmpty) return null;
let entry = this.data;
for (let i = 0; i < indexes.length; i++) {

View File

@ -627,7 +627,6 @@ var et2_selectbox = /** @class */ (function (_super) {
});
}
this.input.on('liszt:ready', function (evt, params) {
debugger;
this.set_statustext(this.statustext);
}.bind(this));
this.input.chosen({

View File

@ -849,7 +849,6 @@ export class et2_selectbox extends et2_inputWidget
});
}
this.input.on('liszt:ready', function(evt, params) {
debugger;
this.set_statustext(this.statustext);
}.bind(this));
this.input.chosen({