From 9c6ad955aafcc96148a22e5b0cd045e4179f0d19 Mon Sep 17 00:00:00 2001 From: Jarek Radosz Date: Fri, 12 Nov 2021 20:22:43 +0100 Subject: [PATCH] DEV: Fix one more use of `jQuery` global (#14910) --- plugins/poll/assets/javascripts/widgets/discourse-poll.js.es6 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/poll/assets/javascripts/widgets/discourse-poll.js.es6 b/plugins/poll/assets/javascripts/widgets/discourse-poll.js.es6 index 6b476dea10b..471f748d21e 100644 --- a/plugins/poll/assets/javascripts/widgets/discourse-poll.js.es6 +++ b/plugins/poll/assets/javascripts/widgets/discourse-poll.js.es6 @@ -791,7 +791,7 @@ export default createWidget("discourse-poll", { (attrs.post.get("topic.archived") && !staffOnly) || (this.isClosed() && !staffOnly); - const newAttrs = jQuery.extend({}, attrs, { + const newAttrs = Object.assign({}, attrs, { canCastVotes: this.canCastVotes(), hasVoted: this.hasVoted(), isAutomaticallyClosed: this.isAutomaticallyClosed(),