Author: ygrego Date: 2015-02-28 21:02:50 +0000 (Sat, 28 Feb 2015) New Revision: 892 Url: http://forge.nuiton.org/projects/sandbox/repository/revisions/892 Log: Change the name of variable "channelList" (became "channelCollection") in method prevChannel to a better understanding. Modified: oipf/js/impl/VideoBroadcastObject.js Modified: oipf/js/impl/VideoBroadcastObject.js =================================================================== --- oipf/js/impl/VideoBroadcastObject.js 2015-02-27 17:05:01 UTC (rev 891) +++ oipf/js/impl/VideoBroadcastObject.js 2015-02-28 21:02:50 UTC (rev 892) @@ -404,12 +404,12 @@ */ if (channelConfig.currentFavouriteList.length == 0) { //Find the previous channel into channel list - var channelsList = channelConfig.channelLists; + var channelCollection = channelConfig.channelList; } else { //Find the previous channel into the current favourite list - channelsList = channelConfig.currentFavouriteList; + channelCollection = channelConfig.currentFavouriteLists; } - var previousChannel = this._findChannel(channelsList, this.currentChannel, - 1); + var previousChannel = this._findChannel(channelCollection, this.currentChannel, - 1); var tunerFound = this._verifyASuitableTunerAvailable(previousChannel.idType); if (tunerFound) { //ToDO: Error handling, if the switch fail, this instruction correspond to channel switch. @@ -533,7 +533,6 @@ }, _findChannel: function(channelCollection, channel, step) { - for (var keys = Object.keys(channelCollection) in channelCollection) { if (channelCollection[keys] == channel) { return channelCollection[(keys%channelCollection.length)+step];