mirror of
https://github.com/discourse/discourse.git
synced 2025-05-30 15:28:37 +08:00
Refactor app events to more efficiently handle post highlighting
This commit is contained in:
@ -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');
|
||||
|
||||
|
Reference in New Issue
Block a user