A platform for community discussion. Free, open, simple.
DEV: Fix one more use of `jQuery` global (#14910)
Jarek Radosz9c6ad955aafc
diff --git a/plugins/poll/assets/javascripts/widgets/discourse-poll.js.es6 b/plugins/poll/assets/javascripts/widgets/discourse-poll.js.es6index 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(),