;(function(_){ /** * @class Games * @extends Backbone.View * @requires portalGGA.models.Draws * @view */ portalGGA.views.TitleWithContent= Backbone.View.extend( /** @lends portalGGA.views.DrawResults.prototype */{ /** * Rename object, and render on init. * @author mulleti.satyanrayana@gtech.com * @param {Object} options * @param {portalGGA.models.Draws} [options.draws] Draws collection, if not given new one will be created. * @param {Object} options.betslipLinks Map of betslip links, one per each ESA game name. */ constructor: function TitleWithContent( options ){ Backbone.View.apply(this, arguments); this.titleJson= $.parseJSON(options.titleJson); this.portalTextJSON = $.parseJSON(options.portalTextJSON); this.processData(); }, processData: function processData(){ var self =this; $('#winnerGame').append(winnerGameTemplate({titleJson:self.titleJson.myArrayList,portalTextJson:self.portalTextJSON.myArrayList})); } }); }(_))