Author: ygrego Date: 2015-02-23 10:49:26 +0000 (Mon, 23 Feb 2015) New Revision: 855 Url: http://forge.nuiton.org/projects/sandbox/repository/revisions/855 Log: Rename the channels variables so that they are more relevant. Modified: oipf/js/initObj/init.js Modified: oipf/js/initObj/init.js =================================================================== --- oipf/js/initObj/init.js 2015-02-23 10:42:09 UTC (rev 854) +++ oipf/js/initObj/init.js 2015-02-23 10:49:26 UTC (rev 855) @@ -1,23 +1,23 @@ // Used in the channelType property to indicate a TV channel. -CHANNEL_CONSTANT ={"TYPE_TV" : 0}; +CHANNEL_CONSTANT = {"TYPE_TV": 0}; document.registerElement('video-broadcast', { prototype: VideoBroadcastObject.prototype, extends: "object" }); -function initChannel(oipfObjFact){ +function initChannel(oipfObjFact) { var channelConfig = oipfObjFact.createChannelConfig(); - + var channelType = "TYPE_TV"; var channelName = "ARTE"; - var channel1 = new Channel(channelName, channelType); - + var channelArte = new Channel(channelName, channelType); + channelName = "FRANCE_5"; - var channel2 = new Channel(channelName, channelType); - - channelConfig.currentChannel = channel1; - channelConfig.channelList = new ChannelList(channel1, channel2); + var channelFrance5 = new Channel(channelName, channelType); + + channelConfig.currentChannel = channelArte; + channelConfig.channelList = new ChannelList(channelArte, channelFrance5); } var oipfObjectFactory = new OipfObjectFactory();
participants (1)
-
ygregoï¼ users.nuiton.org