From f2b4bc06f633ff99222512b559227e224dd3ae85 Mon Sep 17 00:00:00 2001 From: Henning Leutz <leutz@pcsg.de> Date: Wed, 20 Dec 2017 17:44:08 +0100 Subject: [PATCH] fix: undefined elm --- qui/controls/utils/Background.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/qui/controls/utils/Background.js b/qui/controls/utils/Background.js index b4f64182..bce24d73 100644 --- a/qui/controls/utils/Background.js +++ b/qui/controls/utils/Background.js @@ -31,7 +31,7 @@ define('qui/controls/utils/Background', ['qui/controls/Control'], function (Cont initialize: function (params) { this.parent(params); - + this.$FX = null; }, @@ -140,7 +140,9 @@ define('qui/controls/utils/Background', ['qui/controls/Control'], function (Cont }, { duration: 200, callback: function () { - this.$Elm.setStyle('display', 'none'); + if (this.$Elm) { + this.$Elm.setStyle('display', 'none'); + } if (typeof callback === 'function') { callback(); -- GitLab