Revert "complete.js: Keep IE11 compatibility"
This reverts commit fcd0a0a698
.
This commit is contained in:
parent
d994c33bc6
commit
6810b0ab70
|
@ -24,7 +24,7 @@
|
||||||
* @param icinga
|
* @param icinga
|
||||||
* @constructor
|
* @constructor
|
||||||
*/
|
*/
|
||||||
var InputEnrichment = function (icinga) {
|
let InputEnrichment = function (icinga) {
|
||||||
Icinga.EventListener.call(this, icinga);
|
Icinga.EventListener.call(this, icinga);
|
||||||
|
|
||||||
this.on('beforerender', '#main > .container, #modal-content', this.onBeforeRender, this);
|
this.on('beforerender', '#main > .container, #modal-content', this.onBeforeRender, this);
|
||||||
|
@ -76,8 +76,8 @@
|
||||||
let inputs = event.target.querySelectorAll('[data-enrichment-type]');
|
let inputs = event.target.querySelectorAll('[data-enrichment-type]');
|
||||||
|
|
||||||
// Remember current instances
|
// Remember current instances
|
||||||
inputs.forEach(function (input) {
|
inputs.forEach((input) => {
|
||||||
var enrichment = _this._enrichments.get(input);
|
let enrichment = _this._enrichments.get(input);
|
||||||
if (enrichment) {
|
if (enrichment) {
|
||||||
_this._cachedEnrichments[_this.icinga.utils.getDomPath(input).join(' > ')] = enrichment;
|
_this._cachedEnrichments[_this.icinga.utils.getDomPath(input).join(' > ')] = enrichment;
|
||||||
}
|
}
|
||||||
|
@ -95,9 +95,9 @@
|
||||||
|
|
||||||
if (autorefresh) {
|
if (autorefresh) {
|
||||||
// Apply remembered instances
|
// Apply remembered instances
|
||||||
for (var inputPath in _this._cachedEnrichments) {
|
for (let inputPath in _this._cachedEnrichments) {
|
||||||
var enrichment = _this._cachedEnrichments[inputPath];
|
let enrichment = _this._cachedEnrichments[inputPath];
|
||||||
var input = container.querySelector(inputPath);
|
let input = container.querySelector(inputPath);
|
||||||
if (input !== null) {
|
if (input !== null) {
|
||||||
enrichment.refresh(input);
|
enrichment.refresh(input);
|
||||||
_this._enrichments.set(input, enrichment);
|
_this._enrichments.set(input, enrichment);
|
||||||
|
@ -110,9 +110,9 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
// Create new instances
|
// Create new instances
|
||||||
var inputs = container.querySelectorAll('[data-enrichment-type]');
|
let inputs = container.querySelectorAll('[data-enrichment-type]');
|
||||||
inputs.forEach(function (input) {
|
inputs.forEach((input) => {
|
||||||
var enrichment = _this._enrichments.get(input);
|
let enrichment = _this._enrichments.get(input);
|
||||||
if (! enrichment) {
|
if (! enrichment) {
|
||||||
switch (input.dataset.enrichmentType) {
|
switch (input.dataset.enrichmentType) {
|
||||||
case 'search-bar':
|
case 'search-bar':
|
||||||
|
|
Loading…
Reference in New Issue