function Controller(){function e(e,t,a){var o=e.toString().length;return a>o?Array(a-o+1).join(t)+e:e}require("alloy/controllers/BaseController").apply(this,Array.prototype.slice.call(arguments)),this.__controllerPath="standingsTableRow",arguments[0]?arguments[0].__parentSymbol:null,arguments[0]?arguments[0].$model:null,arguments[0]?arguments[0].__itemTemplate:null;var t=this,a={};t.__views.standingsTableRow=Ti.UI.createTableViewRow({backgroundColor:Alloy.CFG.colors.darkBlue,height:40,className:"standingsTableRow",id:"standingsTableRow"}),t.__views.standingsTableRow&&t.addTopLevelView(t.__views.standingsTableRow),t.__views.positionTeam=Ti.UI.createLabel({font:{fontSize:13,fontFamily:Alloy.CFG.fonts.default},width:Ti.UI.SIZE,height:Ti.UI.SIZE,left:5,id:"positionTeam"}),t.__views.standingsTableRow.add(t.__views.positionTeam),t.__views.teamLogo=Ti.UI.createImageView({width:30,height:30,left:25,id:"teamLogo"}),t.__views.standingsTableRow.add(t.__views.teamLogo),t.__views.stats=Ti.UI.createLabel({font:{fontSize:13,fontFamily:Alloy.CFG.fonts.default},width:Ti.UI.SIZE,height:Ti.UI.SIZE,right:5,id:"stats"}),t.__views.standingsTableRow.add(t.__views.stats),a.destroy=function(){},_.extend(t,t.__views);var o=require("helpers"),i=arguments[0]||{};o.i("creating standings row | team: "+i.teamName);var s="  ";t.positionTeam.text=e(i.position,"0",2)+".             "+i.teamName,t.teamLogo.image=i.teamLogo,t.stats.text=e(i.matchesTotal,s,2)+"  "+e(i.matchesWon,s,2)+"  "+e(i.matchesDrawn,s,2)+"  "+e(i.matchesLost,s,2)+"  "+e(i.goalDiff,s,3)+"   "+e(i.points,s,2),t.standingsTableRow.backgroundColor=i.bgColor,t.standingsTableRow.teamId=i.id,t.standingsTableRow.teamName=i.teamName,_.extend(t,a)}var Alloy=require("alloy"),Backbone=Alloy.Backbone,_=Alloy._;module.exports=Controller;