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 ...

Get Learn HTML5 and JavaScript for Android now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.