HTML and CSS Reference
In-Depth Information
*/
this.setDvd(_dvd);
this.setCinema(_cinema);
/**
* Gets the DVD release date
*/
this.getDvd = function(){
return _dvd;
}
/**
* Sets the DVD release date
*/
this.setDvd = function(dvd){
_dvd = dvd;
}
/**
* Gets the cinema release date
*/
this.getCinema = function(){
return _cinema;
}
/**
* Sets the cinema release date
*/
this.setCinema = function(cinema){
_cinema = cinema;
}
}
Again, the model works in just the same manner as the format type.
Application Utilities
As you have seen from the validator utility, a utility allows you to place code that
may not necessarily belong to a controller, model, view, or type in its own
object. A utility object will usually perform some kind of repetitive action. In this
application, there are three other utilities, in addition to the validator utility.
These are:
deck.js -----This utility is used to manage the cards within a
deck. It allows you to show and hide cards.
 
Search WWH ::




Custom Search