Author: ygrego Date: 2015-03-11 11:19:15 +0000 (Wed, 11 Mar 2015) New Revision: 930 Url: http://forge.nuiton.org/projects/sandbox/repository/revisions/930 Log: Into method "createChannelObject" just pass the "arguments" object in call of methods. Modified: oipf/js/impl/VideoBroadcastObject.js Modified: oipf/js/impl/VideoBroadcastObject.js =================================================================== --- oipf/js/impl/VideoBroadcastObject.js 2015-03-11 11:17:53 UTC (rev 929) +++ oipf/js/impl/VideoBroadcastObject.js 2015-03-11 11:19:15 UTC (rev 930) @@ -408,10 +408,10 @@ createChannelObject: function() { if (arguments.length == 3 && arguments[0] == 13) { - this._createDvbSiChannelObject(arguments[0], arguments[1], arguments[2]); + this._createDvbSiChannelObject(arguments); } else { if (arguments.length >= 2) { // Some argments can be optional but a minimum of 2 is required. - this._createAnyDvbChannelObject(arguments[0], arguments[1], arguments[2], arguments[3], arguments[4], arguments[5]); + this._createAnyDvbChannelObject(arguments); } } return null; @@ -429,7 +429,7 @@ if ((sid >= 1) && (sid <= 65535)) { //Verify the rigth range of service id. - var newChannel = new Channel("localChannel" + createUUID(), "TYPE_TV", idType, dsd, sid); + var newChannel = new Channel(idType, dsd, sid, "localChannel" + createUUID()); var channelConfig = this.getChannelConfig(); channelTools = new ChannelTools();