LSP - bad code, bad! no overwriting my streams object with null :(

This commit is contained in:
cat 2015-10-16 09:13:11 +02:00
parent 0b784a3d53
commit 2a7a714aad
2 changed files with 15 additions and 15 deletions

View file

@ -4211,7 +4211,7 @@ var mist = {
case 'OK':
//communication succesful
//fix the weird ass incomplete stream shit
//fix the weird ass incomplete list stream shit
if ('streams' in d) {
if (d.streams) {
if ('incomplete list' in d.streams) {
@ -4229,7 +4229,7 @@ var mist = {
//remove everything we don't care about
var save = $.extend({},d);
var keep = ['config','capabilities','ui_settings','LTS','active_streams','browse','log','streams','totals'];
var keep = ['config','capabilities','ui_settings','LTS','active_streams','browse','log','totals']; //streams was already copied above
for (var i in save) {
if (keep.indexOf(i) == -1) {
delete save[i];