Author: ygrego Date: 2015-02-27 16:23:32 +0000 (Fri, 27 Feb 2015) New Revision: 882 Url: http://forge.nuiton.org/projects/sandbox/repository/revisions/882 Log: Channel list is created directly in constructor. Modified: oipf/js/impl/ChannelConfig.js Modified: oipf/js/impl/ChannelConfig.js =================================================================== --- oipf/js/impl/ChannelConfig.js 2015-02-27 16:20:55 UTC (rev 881) +++ oipf/js/impl/ChannelConfig.js 2015-02-27 16:23:32 UTC (rev 882) @@ -93,6 +93,18 @@ }, init: function() { + + var calculation = new Calculation();//Necessary to generate a unique id for each channel. + + var channelType = "TYPE_TV"; + var channelName = "ARTE"; + var channelArte = new Channel(channelName, channelType, "channelId:"+calculation.genId(100,1)); + + channelName = "FRANCE_5"; + var channelFrance5 = new Channel(channelName, channelType, "channelId:"+calculation.genId(100,1)); + + this.currentChannel = channelArte; + this.channelList = new ChannelList(channelArte, channelFrance5); this.favouriteLists = new FavouriteListCollection(); this.currentFavouriteList = new FavouriteList(); },
participants (1)
-
ygregoï¼ users.nuiton.org