HTML and CSS Reference
In-Depth Information
var app = app || {};
app.model = app.model || {};
/**
* A video associated with a movie
* You must add video sources in order for videos to play
* @param {String} title
* @param {Integer} length
* @param {String} posterframe
*/
app.model.video = function appModelVideo(title, length, posterframe){
/**
* The video's instance variables
*/
var _title,
_length,
_posterframe,
_sources = [],
_self = this;
/**
* Set the instance variables using the constructor's arguments
*/
this.init = function(){
this.setTitle(title);
this.setLength(length);
this.setPosterframe(posterframe);
}
/**
* The getters and setters
*/
/**
* Gets the title of the video
* @return {String}
*/
this.getTitle = function(){
return _title;
}
/**
* Sets the title of the video
* @param {String} title
*/
this.setTitle = function(title){
Search WWH ::




Custom Search