function Controller(){require("alloy/controllers/BaseController").apply(this,Array.prototype.slice.call(arguments)),this.__controllerPath="teamSquadPosition",arguments[0]?arguments[0].__parentSymbol:null,arguments[0]?arguments[0].$model:null,arguments[0]?arguments[0].__itemTemplate:null;var e=this,t={};e.__views.teamSquadPosition=Ti.UI.createView({layout:"vertical",width:Ti.UI.FILL,height:Ti.UI.SIZE,id:"teamSquadPosition"}),e.__views.teamSquadPosition&&e.addTopLevelView(e.__views.teamSquadPosition),e.__views.header=Ti.UI.createLabel({font:{fontSize:16,fontFamily:Alloy.CFG.fonts.default},width:Ti.UI.FILL,height:30,backgroundGradient:Alloy.CFG.gradients.lightGrey,id:"header"}),e.__views.teamSquadPosition.add(e.__views.header),e.__views.wrapper=Ti.UI.createView({layout:"horizontal",width:Ti.UI.FILL,height:Ti.UI.SIZE,bottom:5,id:"wrapper"}),e.__views.teamSquadPosition.add(e.__views.wrapper),t.destroy=function(){},_.extend(e,e.__views);var i=require("helpers"),a=arguments[0]||{};e.header.text=a.position,_.each(a.players,function(t){i.is("adding position item",t),e.wrapper.add(Alloy.createController("teamSquadPositionItem",t).getView())}),_.extend(e,t)}var Alloy=require("alloy"),Backbone=Alloy.Backbone,_=Alloy._;module.exports=Controller;