HTML and CSS Reference
In-Depth Information
var app = app || {};
app.model = app.model || {};
/**
* The actor object handles the actors for a movie
* Actors should only be included in a full movie listing
* @param {String} name
* @param {String} role
*/
app.model.actor = function appModelActor(name, role){
/**
* The actor's instance variables
*/
var _name,
_role,
_self = this;
/**
* Set the instance variables using the constructor's arguments
*/
this.init = function(){
this.setName(name);
this.setRole(role);
}
/**
* Getters and setters
*/
/**
* Returns the full name of the actor
* @return {String}
*/
this.getName = function(){
return _name;
}
/**
* Sets the actor's full name
* @param {String} name
*/
this.setName = function(name){
_name = name;
}
/**
* Gets the role of the actor in
* relation to the associated film
Search WWH ::




Custom Search