Author: ygrego Date: 2015-02-10 13:56:10 +0000 (Tue, 10 Feb 2015) New Revision: 786 Url: http://forge.nuiton.org/projects/sandbox/repository/revisions/786 Log: In method 'getChannel' change test condition of statement 'if'. Modified: oipf/js/impl/model/ChannelList.js Modified: oipf/js/impl/model/ChannelList.js =================================================================== --- oipf/js/impl/model/ChannelList.js 2015-02-10 11:09:44 UTC (rev 785) +++ oipf/js/impl/model/ChannelList.js 2015-02-10 13:56:10 UTC (rev 786) @@ -27,10 +27,11 @@ getChannel: function(channelID) { for (var i = 0; i < this.length; i++) { var channel = this.elts[i]; - if (channel && (channel.channelID == channelID)) { + if (channel.channelID && (channel.channelID == channelID)) { return channel; } } + return undefined; }, /*
participants (1)
-
ygregoï¼ users.nuiton.org