HTML and CSS Reference
In-Depth Information
}
}
/**
* Adds an actor to the movie
* @param {app.model.actor} actor
*/
this.addActor = function(actor){
/**
* You can add any actor validation here
* before it's added to the movie
*/
_actors.push(actor);
}
/**
* Sets the release date
*/
this.setReleaseDate = function(releaseDate){
_releaseDate = releaseDate;
}
/**
* Gets the release date
* @return {app.type.releaseDate}
*/
this.getReleaseDate = function(){
return _releaseDate;
}
/**
* Gets the movie rating
* @return {String}
*/
this.getRating = function(){
return _rating;
}
/**
* Sets the movie rating
* @param {String} rating
*/
this.setRating = function(rating){
_rating = rating;
}
/**
* Checks to see whether the movie
* is in the user's favorites list
* @return {Bool}
Search WWH ::




Custom Search