Browse Source

[core] Allow undefined to be published with huePubSub

Johan Åhlén 10 năm trước cách đây
mục cha
commit
b003380
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      desktop/core/src/desktop/static/desktop/js/hue.utils.js

+ 1 - 1
desktop/core/src/desktop/static/desktop/js/hue.utils.js

@@ -202,7 +202,7 @@ var huePubSub = (function () {
       }
 
       topics[topic].forEach(function (item) {
-        item(info != undefined ? info : {});
+        item(info);
       });
     }
   };