mirror of
https://github.com/discourse/discourse.git
synced 2025-09-07 12:02:53 +08:00
DEV: Fix one more use of jQuery
global (#14910)
This commit is contained in:
parent
7ea2bf52cc
commit
9c6ad955aa
1 changed files with 1 additions and 1 deletions
|
@ -791,7 +791,7 @@ export default createWidget("discourse-poll", {
|
||||||
(attrs.post.get("topic.archived") && !staffOnly) ||
|
(attrs.post.get("topic.archived") && !staffOnly) ||
|
||||||
(this.isClosed() && !staffOnly);
|
(this.isClosed() && !staffOnly);
|
||||||
|
|
||||||
const newAttrs = jQuery.extend({}, attrs, {
|
const newAttrs = Object.assign({}, attrs, {
|
||||||
canCastVotes: this.canCastVotes(),
|
canCastVotes: this.canCastVotes(),
|
||||||
hasVoted: this.hasVoted(),
|
hasVoted: this.hasVoted(),
|
||||||
isAutomaticallyClosed: this.isAutomaticallyClosed(),
|
isAutomaticallyClosed: this.isAutomaticallyClosed(),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue