Author: ygrego Date: 2015-03-31 08:24:06 +0000 (Tue, 31 Mar 2015) New Revision: 992 Url: http://forge.nuiton.org/projects/sandbox/repository/revisions/992 Log: The "currentChannel" pass in argument of method "init" is directly affected to property "currentChannel" of "ChannelService". And the initial test done on this one is deleted now. Modified: oipf/js/utils/ChannelService.js Modified: oipf/js/utils/ChannelService.js =================================================================== --- oipf/js/utils/ChannelService.js 2015-03-31 08:20:32 UTC (rev 991) +++ oipf/js/utils/ChannelService.js 2015-03-31 08:24:06 UTC (rev 992) @@ -11,7 +11,7 @@ }, init: function(currentChannel) { - this.currentChannel && (this.currentChannel = currentChannel || null); + var channelName = "ARTE"; var channelIdType = 12; var channelArte = new Channel(channelIdType, 52, 53, 54, channelName); @@ -22,7 +22,7 @@ channelName = "FRANCE_4"; var channelFrance4 = new Channel(channelIdType, 22, 23, 24, channelName); - this.currentChannel = channelArte; + this.currentChannel = currentChannel || channelArte; this.channelList = new ChannelList(channelArte, channelFrance5, channelFrance4); this.favouriteLists = new FavouriteListCollection(); this.currentFavouriteList = new FavouriteList();