Refactor app events to more efficiently handle post highlighting

This commit is contained in:
Robin Ward
2015-01-14 12:20:37 -05:00
parent 78d5d22776
commit 28f702a5b6
9 changed files with 61 additions and 57 deletions

View File

@ -1,4 +1,5 @@
import PollController from "discourse/plugins/poll/controllers/poll";
import PostView from "discourse/views/post";
var Poll = Discourse.Model.extend({
post: null,
@ -71,7 +72,7 @@ export default {
name: 'poll',
initialize: function() {
Discourse.PostView.reopen({
PostView.reopen({
createPollUI: function($post) {
var post = this.get('post');