 
   updateCurrentStudent: (event) ->
     @currentAssignment = @collection.find (assignment) ->
-      assignment.get('student_name') is event.target.text
+      assignment.get('student_name') is event.target.innerHTML
 
     cookie.set 'current_assignment', @currentAssignment.get('token')
 

    @header.html markup

  renderMarker: ->
    center = @currentAssignment.get 'latLng'
    @marker = new google.maps.Marker
      position: center
      map: @map
      title: @currentAssignment.get 'student_name'

  toggleStudentList: ->
    @$('.student-names').toggleClass 'closed'

Wmsb.Views.MapView = Backbone.View.extend
  events:
    'click .selected-student': 'toggleStudentList'
    'click .student-name': 'updateCurrentStudent'

  styles: [
    stylers: [
