Fullers.Views.Detail = Backbone.View.extend({  
  
  el: document.querySelector('body'),
 
  initialize: function(id){
    _.bindAll(this, 'render'); // fixes loss of context for 'this' within methods
    this.render(id); //Render the view
  },
  
  render: function(id){
    var onImageError = this.onImageError;  

    Fullers.hideLoad(); //Loading complete so hide the loading div
    Fullers.hideAll();

  	$('#pub_detail').show();
    $('#pub_detail_list').html(parser.getPubHTML(id));
    $('#pub_image').bind("error", function(e){
      e.currentTarget.src = "assets/images/image_placeholder.gif";
    })

    window.scrollTo(0,0);
  },
});

