Fullers.Views.Single = Backbone.View.extend({  
  
  el: document.querySelector('body'),
 
  initialize: function(id){
    _.bindAll(this, 'render'); // fixes loss of context for 'this' within methods
     this.render(id); // not all views are self-rendering. This one is.
  },

  render: function(id){
    Fullers.hideAll();
    Fullers.Modules.Map.refresh(); //Clears any old maps
    $('#map').show();
    var lat = Fullers.Utils.getPubAttr(id, "lat");
    var long = Fullers.Utils.getPubAttr(id, "long");
    $('#distance_from_location').hide();
    Fullers.Modules.Map.renderSingleLocation(lat,long,"pub");
    window.scrollTo(0,75);
  }

});
