function Controller(){function e(){l.leagueSelectTableRow.favourite?(l.favouriteStar.backgroundImage="images/iconFavouriteOff.png",l.leagueSelectTableRow.favourite=!1):(l.favouriteStar.backgroundImage="images/iconFavouriteOn.png",l.leagueSelectTableRow.favourite=!0)}require("alloy/controllers/BaseController").apply(this,Array.prototype.slice.call(arguments)),this.__controllerPath="leagueSelectTableRow",arguments[0]?arguments[0].__parentSymbol:null,arguments[0]?arguments[0].$model:null,arguments[0]?arguments[0].__itemTemplate:null;var l=this,a={};l.__views.leagueSelectTableRow=Ti.UI.createTableViewRow({backgroundColor:Alloy.CFG.colors.darkBlue,height:46,id:"leagueSelectTableRow"}),l.__views.leagueSelectTableRow&&l.addTopLevelView(l.__views.leagueSelectTableRow),l.__views.activeBar=Ti.UI.createView({width:5,left:0,backgroundColor:"transparent",id:"activeBar"}),l.__views.leagueSelectTableRow.add(l.__views.activeBar),l.__views.flag=Ti.UI.createImageView({width:32,height:Ti.UI.SIZE,left:10,touchEnabled:!1,id:"flag"}),l.__views.leagueSelectTableRow.add(l.__views.flag),l.__views.title=Ti.UI.createLabel({font:{fontSize:14,fontFamily:Alloy.CFG.fonts.default},left:52,color:Alloy.CFG.colors.white,id:"title"}),l.__views.leagueSelectTableRow.add(l.__views.title),l.__views.favouriteStar=Ti.UI.createView({width:33,height:33,backgroundImage:"images/iconFavouriteOff.png",right:64,visible:!1,id:"favouriteStar"}),l.__views.leagueSelectTableRow.add(l.__views.favouriteStar),a.destroy=function(){},_.extend(l,l.__views),require("helpers");var t=arguments[0]||{};l.leagueSelectTableRow.args={id:t.id},l.leagueSelectTableRow.favourite=!1,t.active&&e(),l.leagueSelectTableRow.controller="league",l.leagueSelectTableRow.activeBar=l.activeBar,l.title.text=t.title,l.flag.image=t.flagUrl,l.leagueSelectTableRow.toggle=e,_.extend(l,a)}var Alloy=require("alloy"),Backbone=Alloy.Backbone,_=Alloy._;module.exports=Controller;