(function(c,f,h){portalGGA.views.LeaderBoard=Backbone.View.extend({events:{},constructor:function e(i){Backbone.View.apply(this,arguments); this.Leaderboard=new portalGGA.models.Leaderboard(); this.leaderAPI=false; _.bindAll(this,"_getRetailers","_populateRetailers"); this.populate=i.populate; if(this.populate){this._getRetailers() }},_getRetailers:function d(){var i=this; var j={}; i.Leaderboard.fetch({}).then(i._populateRetailers).then(i._populatePagination) },handleTabNavigation:function a(){var i=this; if(i.leaderAPI==false){i.leaderAPI=true; this._getRetailers() }},_populateRetailers:function g(){var j=this; var k=j.Leaderboard.toJSON(); var i="false"; if(k.retailers&&k.retailers.length>0){_.each(k.retailers,function(m,l){if(m.team!=null){i="true"; return }}); c(".leaderBoard").html(leaderBoardTemplate({retailers:k.retailers,boolRetailer:i,resultSet:k})) }},_handleFailure:function b(i){c(".leaderBoard").html(noResultsTemplate()) }}) }(jQuery,portalGGA.utils.session,portalGGA.utils.redirect));