Author: ygrego Date: 2015-04-20 10:15:38 +0000 (Mon, 20 Apr 2015) New Revision: 1231 Url: http://forge.nuiton.org/projects/sandbox/repository/revisions/1231 Log: Initialization of others class properties directly in constructor. Modified: oipf/js/impl/model/Programme.js Modified: oipf/js/impl/model/Programme.js =================================================================== --- oipf/js/impl/model/Programme.js 2015-04-20 10:10:47 UTC (rev 1230) +++ oipf/js/impl/model/Programme.js 2015-04-20 10:15:38 UTC (rev 1231) @@ -324,12 +324,35 @@ init: function(name, startTime, duration, description, episode, channel, blocked) { this.name = name; - this.starTime = startTime; + this.startTime = startTime; this.duration = duration; this.description = description; this.episode = episode; this.channel = channel; this.blocked = blocked; + this.longName = null; + this.description = null; + this.longDescription = null; + this.duration = null; + this.channelID = null; + this.totalEpisodes = null; + this.is3D = null; + this.programmeID = null; + this.programmeIDType = null; + this.IMI = null; + this.parentalRatings = null; + this.groupCRIDs = null; + this.showType = null; + this.subtitles = null; + this.isHD = null; + this.audioType = null; + this.isMultilingual = null; + this.genre = null; + this.hasRecording = null; + this.audioLanguages = null; + this.subtitleLanguages = null; + this.locked = null; + this.recording = null; }, /*
participants (1)
-
ygregoï¼ users.nuiton.org