 
     _.extend histogram, 
       biggest_segment : Math.max.apply(null, _.map(histogram.breakdown, (bar) -> bar.positions.length))
-      num_positions : _.keys(@proposal.positions).length 
+      num_positions : if !@proposal.positions? 0 else _.keys(@proposal.positions).length
 
     for bar,idx in histogram.breakdown
       height = bar.positions.length / histogram.biggest_segment


  render : () ->
    
    if @proposal.top_pro && @proposal.top_con && @proposal.model.participants().length > 0
      this.$el.html ConsiderIt.SummaryView.template($.extend({}, @model.attributes, {
        top_pro : @proposal.top_pro 
        top_con : @proposal.top_con

    @state = 1


  implode_participants : ->
    @proposal.view.set_state(2)
    $participants = @$el.find('.l-message-speaker .l-group-container')
    $participants.find('.avatar').css {position: '', zIndex: '', '-ms-transform': "", '-moz-transform': "", '-webkit-transform': "", transform: ""}

    @$el.find('.m-bar-percentage').fadeOut()
    @$el.find('.m-histogram').fadeOut =>
      @$el.find('.m-histogram').css('opacity', '')
      $participants.fadeIn()

  explode_participants : ->
    @proposal.view.set_state(4)


    modern = Modernizr.csstransforms && Modernizr.csstransitions

