HTML and CSS Reference
In-Depth Information
* @param {String} format
* @param {String} mime
*/
app.type.format = function(name, format, mime){
/**
* The media's instance variables
*/
var _name,
_format,
_mime,
_self = this;
/**
* Set the instance variables using the constructor's arguments
*/
this.setName(name);
this.setFormat(format);
this.setMime(mime);
/**
* Getters and setters
*/
/**
* Gets the name of the media type
* @return {String}
*/
this.getName = function(){
return _name;
}
/**
* Sets the name of the media type
* @param {String} name
*/
this.setName = function(name){
_name = name;
}
/**
* Gets the format of the media (e.g., webm, ogv)
* @return {String}
*/
this.getFormat = function(){
return _format;
}
/**
 
Search WWH ::




Custom Search