Author: ygrego Date: 2015-05-28 15:06:34 +0000 (Thu, 28 May 2015) New Revision: 1548 Url: http://forge.nuiton.org/projects/sandbox/repository/revisions/1548 Log: Addition of the method "createChannelList". Modified: oipf/js/utils/ChannelService.js Modified: oipf/js/utils/ChannelService.js =================================================================== --- oipf/js/utils/ChannelService.js 2015-05-28 13:53:16 UTC (rev 1547) +++ oipf/js/utils/ChannelService.js 2015-05-28 15:06:34 UTC (rev 1548) @@ -31,6 +31,19 @@ this.currentFavouriteList = new FavouriteList(); }, + createChannelList: function() { + if (channelNumber > 0) { + var keys = Object.keys(this.channelListJson); + for (var i = 0, li = keys.length; i < li; i++) { + + var channel = this.channelListJson[keys[i]]; + + var newOifpChannel = new Channel(channel); + + } + } + }, + prevChannel: function(channelCollection, channel) { return channelUtils.findChannel(channelCollection, channel, -1); },