From b928795dc78e24fb4eff525534cf9b9b8852dfb5 Mon Sep 17 00:00:00 2001 From: rolux Date: Tue, 23 Sep 2014 23:56:44 +0200 Subject: [PATCH] cosmetic changes --- static/js/UI.js | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/static/js/UI.js b/static/js/UI.js index 109ef4eb..02a878a8 100644 --- a/static/js/UI.js +++ b/static/js/UI.js @@ -241,10 +241,12 @@ pandora.UI = (function() { triggerEvents && Ox.forEach(trigger, function(val, key) { Ox.Log('UI', 'TRIGGER ', key, val); Ox.forEach(pandora.$ui, function($element) { - Ox.UI.isElement($element) && $element.triggerEvent('pandora_' + key.toLowerCase(), { - value: val, - previousValue: self.previousUI[key] - }); + if (Ox.isOxElement($element)) { + $element.triggerEvent('pandora_' + key.toLowerCase(), { + value: val, + previousValue: self.previousUI[key] + }); + } }); });