O'Reilly logo

Learn HTML5 and JavaScript for Android by Gavin Williams

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Appendix    A

Appendix

Listing A-1

var app = app || {}; app.model = app.model || {}; /**  * A movie model used for all movies within the application  *  * @alias app.model.movie  * @constructor  * @param {String} title  * @param {String} rtid  * @param {String} posterframe  * @param {String} synopsis  */ app.model.movie = function appModelMovie(title, rtid, posterframe, synopsis) {    /**     * The video's instance variables     */    var _title,       _rtid,       _posterframe,       _synopsis,       _releaseDate,       _videos = [],       _actors = [],       _rating,       _favorite = false,       _self = this;    /**     * Getters and setters     */    this.init = function(){       /**        * Set the instance variables using the ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required