Permalink
Browse files

Fixed error

  • Loading branch information...
1 parent b76c5c7 commit 6a963be833b24a0f8a59613c11e8bc95924370bc @ecoyac ecoyac committed Jul 31, 2011
Showing with 1 addition and 3 deletions.
  1. +1 −3 js/ui.js
View
@@ -526,9 +526,7 @@ UI = function() {
Handler.prototype.RemoveChannel = function(data) {
var channel = Data.channels[data.chanId];
- var i = Data.channels.indexOf(channel.id);
- if (i != -1)
- Data.channels.splice(i,1);
+ delete Data.channels[data.chanId];
removeChannelFromList(channel);
}

0 comments on commit 6a963be

Please sign in to comment.