```coffeescript
$(".polls").fadeOut 500, ->
  $(".polls[data-id='<%= @poll.id %>']").replaceWith("<%= escape_javascript(render :partial => "polls/poll", :locals => {:previous_poll => @poll}) %>")
$(".polls").show()
```

Fix bug when voting where local had been mis-named
user
```coffeescript
$(".polls").fadeOut 500, ->
  $(".polls[data-id='<%= @poll.id %>']").replaceWith("<%= escape_javascript(render :partial => "polls/poll", :locals => {:last_completed_poll => @poll}) %>")
$(".polls").show()
```
assistant