FIX: editing a post with a poll breaks sometimes

This commit is contained in:
Régis Hanol 2015-05-14 17:18:45 +02:00
parent c23aeddccf
commit 635b31af7b
1 changed files with 1 additions and 1 deletions

View File

@ -48,7 +48,7 @@ export default {
pollView = createPollView(container, post, polls[pollName], votes[pollName]);
$poll.replaceWith($div);
pollView.renderer.replaceIn(pollView, $div[0]);
Em.run.next(_ => pollView.renderer.replaceIn(pollView, $div[0]));
pollViews[pollName] = pollView;
});