function Controller(){function e(e,t){return 300*(e/(e+t))}require("alloy/controllers/BaseController").apply(this,Array.prototype.slice.call(arguments)),this.__controllerPath="matchDetailStatsItem",arguments[0]?arguments[0].__parentSymbol:null,arguments[0]?arguments[0].$model:null,arguments[0]?arguments[0].__itemTemplate:null;var t=this,a={};t.__views.matchDetailStatsItem=Ti.UI.createView({height:Ti.UI.SIZE,id:"matchDetailStatsItem"}),t.__views.matchDetailStatsItem&&t.addTopLevelView(t.__views.matchDetailStatsItem),t.__views.title=Ti.UI.createLabel({font:{fontSize:16,fontFamily:Alloy.CFG.fonts.default},top:16,id:"title"}),t.__views.matchDetailStatsItem.add(t.__views.title),t.__views.home=Ti.UI.createLabel({font:{fontSize:24,fontFamily:Alloy.CFG.fonts.bold},top:10,left:12,id:"home"}),t.__views.matchDetailStatsItem.add(t.__views.home),t.__views.away=Ti.UI.createLabel({font:{fontSize:24,fontFamily:Alloy.CFG.fonts.bold},top:10,right:12,id:"away"}),t.__views.matchDetailStatsItem.add(t.__views.away),t.__views.barAway=Ti.UI.createView({backgroundColor:Alloy.CFG.colors.lightBlue,height:30,left:10,right:10,top:48,bottom:18,width:300,id:"barAway"}),t.__views.matchDetailStatsItem.add(t.__views.barAway),t.__views.barHome=Ti.UI.createView({backgroundColor:Alloy.CFG.colors.lightGreen,height:30,left:0,id:"barHome"}),t.__views.barAway.add(t.__views.barHome),a.destroy=function(){},_.extend(t,t.__views),require("helpers");var l=arguments[0]||{};t.title.text=l.title,t.home.text=l.home,t.away.text=l.away,t.barHome.width=e(l.home,l.away),_.extend(t,a)}var Alloy=require("alloy"),Backbone=Alloy.Backbone,_=Alloy._;module.exports=Controller;