diff --git a/Dangerfile b/Dangerfile index a3abee32567..f1c779cb305 100644 --- a/Dangerfile +++ b/Dangerfile @@ -17,3 +17,26 @@ has_non_en_locales_changes = locales_changes.grep_v(/config\/locales\/(client|se if locales_changes.any? && has_non_en_locales_changes fail("Please submit your non-English translation updates via [Transifex](https://www.transifex.com/discourse/discourse-org/). You can read more on how to contribute translations [here](https://meta.discourse.org/t/contribute-a-translation-to-discourse/14882).") end + +files = (git.added_files + git.modified_files) + .reject! { |path| path.start_with?("plugins/") } + .reject! { |path| !(path.end_with?("es6") || path.end_with?("rb")) } + +super_offenses = [] + +files.each do |path| + diff = git.diff_for_file(path) + + next if !diff + + diff.patch.lines.grep(/^\+\s\s/).each do |added_line| + super_offenses << path if added_line['this._super()'] + end +end + +if !super_offenses.empty? + warn(%{ +When possible use `this._super(...arguments)` instead of `this._super()`\n +#{super_offenses.uniq.map { |o| github.html_link(o) }.join("\n")} + }) +end diff --git a/Gemfile.lock b/Gemfile.lock index e30bbc0e4a7..2914887ebc9 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -91,14 +91,14 @@ GEM crack (0.4.3) safe_yaml (~> 1.0.0) crass (1.0.4) - danger (5.6.3) + danger (5.11.1) claide (~> 1.0) claide-plugins (>= 0.9.2) colored2 (~> 3.1) cork (~> 0.1) faraday (~> 0.9) faraday-http-cache (~> 1.0) - git (~> 1) + git (~> 1.5) kramdown (~> 1.5) no_proxy_fix octokit (~> 4.7) @@ -148,7 +148,7 @@ GEM thor (~> 0.19.1) fspath (3.1.0) gc_tracer (1.5.1) - git (1.4.0) + git (1.5.0) globalid (0.4.1) activesupport (>= 4.2.0) guess_html_encoding (0.0.11) @@ -229,7 +229,7 @@ GEM multi_json (~> 1.3) multi_xml (~> 0.5) rack (>= 1.2, < 3) - octokit (4.9.0) + octokit (4.13.0) sawyer (~> 0.8.0, >= 0.5.3) oj (3.6.2) omniauth (1.9.0) @@ -284,7 +284,7 @@ GEM pry (>= 0.9.10, < 0.11.0) pry-rails (0.3.6) pry (>= 0.10.4) - public_suffix (3.0.2) + public_suffix (3.0.3) puma (3.11.4) r2 (0.2.7) rack (2.0.6) diff --git a/app/assets/javascripts/admin/components/ace-editor.js.es6 b/app/assets/javascripts/admin/components/ace-editor.js.es6 index f0f5750469c..b86c0e4cd70 100644 --- a/app/assets/javascripts/admin/components/ace-editor.js.es6 +++ b/app/assets/javascripts/admin/components/ace-editor.js.es6 @@ -67,7 +67,7 @@ export default Ember.Component.extend({ }, didInsertElement() { - this._super(); + this._super(...arguments); loadScript("/javascripts/ace/ace.js").then(() => { window.ace.require(["ace/ace"], loadedAce => { diff --git a/app/assets/javascripts/admin/components/admin-backups-logs.js.es6 b/app/assets/javascripts/admin/components/admin-backups-logs.js.es6 index 9c92228b8cb..4db599b3c38 100644 --- a/app/assets/javascripts/admin/components/admin-backups-logs.js.es6 +++ b/app/assets/javascripts/admin/components/admin-backups-logs.js.es6 @@ -9,7 +9,7 @@ export default Ember.Component.extend( classNames: ["admin-backups-logs"], init() { - this._super(); + this._super(...arguments); this._reset(); }, diff --git a/app/assets/javascripts/admin/components/admin-report.js.es6 b/app/assets/javascripts/admin/components/admin-report.js.es6 index 56f2457ed77..2fe345c9d0d 100644 --- a/app/assets/javascripts/admin/components/admin-report.js.es6 +++ b/app/assets/javascripts/admin/components/admin-report.js.es6 @@ -311,7 +311,7 @@ export default Ember.Component.extend({ }, _fetchReport() { - this._super(); + this._super(...arguments); this.setProperties({ isLoading: true, rateLimitationString: null }); diff --git a/app/assets/javascripts/admin/components/admin-wrapper.js.es6 b/app/assets/javascripts/admin/components/admin-wrapper.js.es6 index 034e2a0af43..45daf32977e 100644 --- a/app/assets/javascripts/admin/components/admin-wrapper.js.es6 +++ b/app/assets/javascripts/admin/components/admin-wrapper.js.es6 @@ -1,11 +1,11 @@ export default Ember.Component.extend({ didInsertElement() { - this._super(); + this._super(...arguments); $("body").addClass("admin-interface"); }, willDestroyElement() { - this._super(); + this._super(...arguments); $("body").removeClass("admin-interface"); } }); diff --git a/app/assets/javascripts/admin/components/staff-actions.js.es6 b/app/assets/javascripts/admin/components/staff-actions.js.es6 index 07764a80184..3a979b02908 100644 --- a/app/assets/javascripts/admin/components/staff-actions.js.es6 +++ b/app/assets/javascripts/admin/components/staff-actions.js.es6 @@ -8,7 +8,7 @@ export default Ember.Component.extend({ }, didInsertElement() { - this._super(); + this._super(...arguments); this.$().on("click.discourse-staff-logs", "[data-link-post-id]", e => { let postId = $(e.target).attr("data-link-post-id"); diff --git a/app/assets/javascripts/admin/models/color-scheme-color.js.es6 b/app/assets/javascripts/admin/models/color-scheme-color.js.es6 index dd02f7ed292..de0bee512dc 100644 --- a/app/assets/javascripts/admin/models/color-scheme-color.js.es6 +++ b/app/assets/javascripts/admin/models/color-scheme-color.js.es6 @@ -1,6 +1,6 @@ const ColorSchemeColor = Discourse.Model.extend({ init: function() { - this._super(); + this._super(...arguments); this.startTrackingChanges(); }, diff --git a/app/assets/javascripts/admin/models/color-scheme.js.es6 b/app/assets/javascripts/admin/models/color-scheme.js.es6 index fc24331fb81..e7fbe31f235 100644 --- a/app/assets/javascripts/admin/models/color-scheme.js.es6 +++ b/app/assets/javascripts/admin/models/color-scheme.js.es6 @@ -3,7 +3,7 @@ import ColorSchemeColor from "admin/models/color-scheme-color"; const ColorScheme = Discourse.Model.extend(Ember.Copyable, { init: function() { - this._super(); + this._super(...arguments); this.startTrackingChanges(); }, diff --git a/app/assets/javascripts/admin/services/admin-tools.js.es6 b/app/assets/javascripts/admin/services/admin-tools.js.es6 index 29c95819757..ba6bd987411 100644 --- a/app/assets/javascripts/admin/services/admin-tools.js.es6 +++ b/app/assets/javascripts/admin/services/admin-tools.js.es6 @@ -10,7 +10,7 @@ import { getOwner } from "discourse-common/lib/get-owner"; export default Ember.Service.extend({ init() { - this._super(); + this._super(...arguments); // TODO: Make `siteSettings` a service that can be injected this.siteSettings = getOwner(this).lookup("site-settings:main"); diff --git a/app/assets/javascripts/discourse-common/lib/buffered-render.js.es6 b/app/assets/javascripts/discourse-common/lib/buffered-render.js.es6 index 7c7b2269d08..8e23ba55ee9 100644 --- a/app/assets/javascripts/discourse-common/lib/buffered-render.js.es6 +++ b/app/assets/javascripts/discourse-common/lib/buffered-render.js.es6 @@ -28,14 +28,14 @@ export function bufferedRender(obj) { const caller = {}; caller.didRender = function() { - this._super(); + this._super(...arguments); this._customRender(); }; const triggers = obj.rerenderTriggers; if (triggers) { caller.init = function() { - this._super(); + this._super(...arguments); triggers.forEach(k => this.addObserver(k, this.rerenderBuffer)); }; } diff --git a/app/assets/javascripts/discourse/components/add-category-class.js.es6 b/app/assets/javascripts/discourse/components/add-category-class.js.es6 index 05cf3c677d5..6fbb9c824db 100644 --- a/app/assets/javascripts/discourse/components/add-category-class.js.es6 +++ b/app/assets/javascripts/discourse/components/add-category-class.js.es6 @@ -4,7 +4,7 @@ export default Ember.Component.extend({ _slug: null, didInsertElement() { - this._super(); + this._super(...arguments); this.refreshClass(); }, @@ -31,7 +31,7 @@ export default Ember.Component.extend({ }, willDestroyElement() { - this._super(); + this._super(...arguments); this._removeClass(); } }); diff --git a/app/assets/javascripts/discourse/components/backup-codes.js.es6 b/app/assets/javascripts/discourse/components/backup-codes.js.es6 index 3df4b064b98..016040e4bb7 100644 --- a/app/assets/javascripts/discourse/components/backup-codes.js.es6 +++ b/app/assets/javascripts/discourse/components/backup-codes.js.es6 @@ -23,7 +23,7 @@ export default Ember.Component.extend({ }, didRender() { - this._super(); + this._super(...arguments); const $backupCodes = this.$("#backupCodes"); if ($backupCodes.length) { diff --git a/app/assets/javascripts/discourse/components/basic-topic-list.js.es6 b/app/assets/javascripts/discourse/components/basic-topic-list.js.es6 index 3682f873d23..e5660aa98e4 100644 --- a/app/assets/javascripts/discourse/components/basic-topic-list.js.es6 +++ b/app/assets/javascripts/discourse/components/basic-topic-list.js.es6 @@ -23,7 +23,7 @@ export default Ember.Component.extend({ }, init() { - this._super(); + this._super(...arguments); const topicList = this.get("topicList"); if (topicList) { this._initFromTopicList(topicList); diff --git a/app/assets/javascripts/discourse/components/composer-body.js.es6 b/app/assets/javascripts/discourse/components/composer-body.js.es6 index e2eea66f3ca..5d194eb511b 100644 --- a/app/assets/javascripts/discourse/components/composer-body.js.es6 +++ b/app/assets/javascripts/discourse/components/composer-body.js.es6 @@ -85,7 +85,7 @@ export default Ember.Component.extend(KeyEnterEscape, { }, didInsertElement() { - this._super(); + this._super(...arguments); const $replyControl = $("#reply-control"); const resize = () => Ember.run(() => this.resize()); @@ -112,7 +112,7 @@ export default Ember.Component.extend(KeyEnterEscape, { }, willDestroyElement() { - this._super(); + this._super(...arguments); this.appEvents.off("composer:resize", this, this.resize); }, diff --git a/app/assets/javascripts/discourse/components/composer-message.js.es6 b/app/assets/javascripts/discourse/components/composer-message.js.es6 index 64acf1399d0..0805e28434a 100644 --- a/app/assets/javascripts/discourse/components/composer-message.js.es6 +++ b/app/assets/javascripts/discourse/components/composer-message.js.es6 @@ -10,7 +10,7 @@ export default Ember.Component.extend({ }, didInsertElement() { - this._super(); + this._super(...arguments); this.$().show(); }, diff --git a/app/assets/javascripts/discourse/components/composer-messages.js.es6 b/app/assets/javascripts/discourse/components/composer-messages.js.es6 index 1a329fb2728..3bb195d897b 100644 --- a/app/assets/javascripts/discourse/components/composer-messages.js.es6 +++ b/app/assets/javascripts/discourse/components/composer-messages.js.es6 @@ -16,7 +16,7 @@ export default Ember.Component.extend({ hidden: Ember.computed.not("composer.viewOpenOrFullscreen"), didInsertElement() { - this._super(); + this._super(...arguments); this.appEvents.on("composer:typed-reply", this, this._typedReply); this.appEvents.on("composer:opened", this, this._findMessages); this.appEvents.on("composer:find-similar", this, this._findSimilar); diff --git a/app/assets/javascripts/discourse/components/composer-title.js.es6 b/app/assets/javascripts/discourse/components/composer-title.js.es6 index 65b32b2227e..71149e180b5 100644 --- a/app/assets/javascripts/discourse/components/composer-title.js.es6 +++ b/app/assets/javascripts/discourse/components/composer-title.js.es6 @@ -12,7 +12,7 @@ export default Ember.Component.extend({ watchForLink: Ember.computed.alias("composer.canEditTopicFeaturedLink"), didInsertElement() { - this._super(); + this._super(...arguments); if (this.get("focusTarget") === "title") { const $input = this.$("input"); diff --git a/app/assets/javascripts/discourse/components/composer-user-selector.js.es6 b/app/assets/javascripts/discourse/components/composer-user-selector.js.es6 index 1cb6e84f7c4..747663166be 100644 --- a/app/assets/javascripts/discourse/components/composer-user-selector.js.es6 +++ b/app/assets/javascripts/discourse/components/composer-user-selector.js.es6 @@ -9,7 +9,7 @@ export default Ember.Component.extend({ defaultUsernameCount: 0, didInsertElement() { - this._super(); + this._super(...arguments); if (this.get("focusTarget") === "usernames") { this.$("input").putCursorAtEnd(); diff --git a/app/assets/javascripts/discourse/components/create-account.js.es6 b/app/assets/javascripts/discourse/components/create-account.js.es6 index eb7490d46e4..f7b30205a8f 100644 --- a/app/assets/javascripts/discourse/components/create-account.js.es6 +++ b/app/assets/javascripts/discourse/components/create-account.js.es6 @@ -2,7 +2,7 @@ export default Ember.Component.extend({ classNames: ["create-account"], didInsertElement() { - this._super(); + this._super(...arguments); if ($.cookie("email")) { this.set("email", $.cookie("email")); @@ -19,7 +19,7 @@ export default Ember.Component.extend({ }, willDestroyElement() { - this._super(); + this._super(...arguments); this.$().off("keydown.discourse-create-account"); } }); diff --git a/app/assets/javascripts/discourse/components/create-topics-notice.js.es6 b/app/assets/javascripts/discourse/components/create-topics-notice.js.es6 index 8a8557458b6..47f73a02afa 100644 --- a/app/assets/javascripts/discourse/components/create-topics-notice.js.es6 +++ b/app/assets/javascripts/discourse/components/create-topics-notice.js.es6 @@ -14,7 +14,7 @@ export default Ember.Component.extend({ requiredPosts: Ember.computed.alias("siteSettings.tl1_requires_read_posts"), init() { - this._super(); + this._super(...arguments); if (this.get("shouldSee")) { let topicCount = 0, postCount = 0; diff --git a/app/assets/javascripts/discourse/components/custom-html.js.es6 b/app/assets/javascripts/discourse/components/custom-html.js.es6 index e741b263868..6bb64ec5f23 100644 --- a/app/assets/javascripts/discourse/components/custom-html.js.es6 +++ b/app/assets/javascripts/discourse/components/custom-html.js.es6 @@ -5,7 +5,7 @@ export default Ember.Component.extend({ triggerAppEvent: null, init() { - this._super(); + this._super(...arguments); const name = this.get("name"); const html = getCustomHTML(name); @@ -21,14 +21,14 @@ export default Ember.Component.extend({ }, didInsertElement() { - this._super(); + this._super(...arguments); if (this.get("triggerAppEvent") === "true") { this.appEvents.trigger(`inserted-custom-html:${this.get("name")}`); } }, willDestroyElement() { - this._super(); + this._super(...arguments); if (this.get("triggerAppEvent") === "true") { this.appEvents.trigger(`destroyed-custom-html:${this.get("name")}`); } diff --git a/app/assets/javascripts/discourse/components/d-modal-body.js.es6 b/app/assets/javascripts/discourse/components/d-modal-body.js.es6 index 7e6b723b48c..60f0d9a82a4 100644 --- a/app/assets/javascripts/discourse/components/d-modal-body.js.es6 +++ b/app/assets/javascripts/discourse/components/d-modal-body.js.es6 @@ -4,7 +4,7 @@ export default Ember.Component.extend({ dismissable: true, didInsertElement() { - this._super(); + this._super(...arguments); $("#modal-alert").hide(); let fixedParent = this.$().closest(".d-modal.fixed-modal"); @@ -19,7 +19,7 @@ export default Ember.Component.extend({ }, willDestroyElement() { - this._super(); + this._super(...arguments); this.appEvents.off("modal-body:flash"); this.appEvents.off("modal-body:clearFlash"); }, diff --git a/app/assets/javascripts/discourse/components/d-section.js.es6 b/app/assets/javascripts/discourse/components/d-section.js.es6 index e77b3393e6a..4048837e21c 100644 --- a/app/assets/javascripts/discourse/components/d-section.js.es6 +++ b/app/assets/javascripts/discourse/components/d-section.js.es6 @@ -5,7 +5,7 @@ export default Ember.Component.extend({ tagName: "section", didInsertElement() { - this._super(); + this._super(...arguments); const pageClass = this.get("pageClass"); if (pageClass) { @@ -25,7 +25,7 @@ export default Ember.Component.extend({ }, willDestroyElement() { - this._super(); + this._super(...arguments); const pageClass = this.get("pageClass"); if (pageClass) { $("body").removeClass(`${pageClass}-page`); diff --git a/app/assets/javascripts/discourse/components/discourse-topic.js.es6 b/app/assets/javascripts/discourse/components/discourse-topic.js.es6 index 15716de7ad3..4a112c7e200 100644 --- a/app/assets/javascripts/discourse/components/discourse-topic.js.es6 +++ b/app/assets/javascripts/discourse/components/discourse-topic.js.es6 @@ -48,7 +48,7 @@ export default Ember.Component.extend(AddArchetypeClass, Scrolling, { }, didInsertElement() { - this._super(); + this._super(...arguments); this.bindScrolling({ name: "topic-view" }); $(window).on("resize.discourse-on-scroll", () => this.scrolled()); @@ -117,7 +117,7 @@ export default Ember.Component.extend(AddArchetypeClass, Scrolling, { }, willDestroyElement() { - this._super(); + this._super(...arguments); this.unbindScrolling("topic-view"); $(window).unbind("resize.discourse-on-scroll"); diff --git a/app/assets/javascripts/discourse/components/discovery-topics-list.js.es6 b/app/assets/javascripts/discourse/components/discovery-topics-list.js.es6 index 699d2883e01..465a8d10a08 100644 --- a/app/assets/javascripts/discourse/components/discovery-topics-list.js.es6 +++ b/app/assets/javascripts/discourse/components/discovery-topics-list.js.es6 @@ -32,7 +32,7 @@ const DiscoveryTopicsListComponent = Ember.Component.extend( }, scrolled() { - this._super(); + this._super(...arguments); this.saveScrollPosition(); }, diff --git a/app/assets/javascripts/discourse/components/edit-category-tab.js.es6 b/app/assets/javascripts/discourse/components/edit-category-tab.js.es6 index f8b8d962ada..7c2509f0680 100644 --- a/app/assets/javascripts/discourse/components/edit-category-tab.js.es6 +++ b/app/assets/javascripts/discourse/components/edit-category-tab.js.es6 @@ -15,7 +15,7 @@ export default Ember.Component.extend({ }.property("tab"), didInsertElement() { - this._super(); + this._super(...arguments); Ember.run.scheduleOnce("afterRender", this, this._addToCollection); }, diff --git a/app/assets/javascripts/discourse/components/future-date-input.js.es6 b/app/assets/javascripts/discourse/components/future-date-input.js.es6 index 6f3a4251eb2..42ac342f48e 100644 --- a/app/assets/javascripts/discourse/components/future-date-input.js.es6 +++ b/app/assets/javascripts/discourse/components/future-date-input.js.es6 @@ -18,7 +18,7 @@ export default Ember.Component.extend({ displayLabel: null, init() { - this._super(); + this._super(...arguments); const input = this.get("input"); diff --git a/app/assets/javascripts/discourse/components/generated-invite-link.js.es6 b/app/assets/javascripts/discourse/components/generated-invite-link.js.es6 index 8a05d12b843..35179719ec3 100644 --- a/app/assets/javascripts/discourse/components/generated-invite-link.js.es6 +++ b/app/assets/javascripts/discourse/components/generated-invite-link.js.es6 @@ -1,6 +1,6 @@ export default Ember.Component.extend({ didInsertElement() { - this._super(); + this._super(...arguments); this.$("input") .select() .focus(); diff --git a/app/assets/javascripts/discourse/components/group-card-contents.js.es6 b/app/assets/javascripts/discourse/components/group-card-contents.js.es6 index 78e9389631e..763d8fe2c56 100644 --- a/app/assets/javascripts/discourse/components/group-card-contents.js.es6 +++ b/app/assets/javascripts/discourse/components/group-card-contents.js.es6 @@ -55,7 +55,7 @@ export default Ember.Component.extend(CardContentsBase, CleansUp, { }, _close() { - this._super(); + this._super(...arguments); this.set("group", null); }, diff --git a/app/assets/javascripts/discourse/components/groups-form-profile-fields.js.es6 b/app/assets/javascripts/discourse/components/groups-form-profile-fields.js.es6 index 2d231d1eca5..867daa6a935 100644 --- a/app/assets/javascripts/discourse/components/groups-form-profile-fields.js.es6 +++ b/app/assets/javascripts/discourse/components/groups-form-profile-fields.js.es6 @@ -11,7 +11,7 @@ export default Ember.Component.extend({ nameInput: null, didInsertElement() { - this._super(); + this._super(...arguments); const name = this.get("model.name"); if (name) { diff --git a/app/assets/javascripts/discourse/components/hide-modal-trigger.js.es6 b/app/assets/javascripts/discourse/components/hide-modal-trigger.js.es6 index 4c187fe3ba0..e3951d52772 100644 --- a/app/assets/javascripts/discourse/components/hide-modal-trigger.js.es6 +++ b/app/assets/javascripts/discourse/components/hide-modal-trigger.js.es6 @@ -1,6 +1,6 @@ export default Ember.Component.extend({ didInsertElement() { - this._super(); + this._super(...arguments); $(".d-modal.fixed-modal") .modal("hide") .addClass("hidden"); diff --git a/app/assets/javascripts/discourse/components/links-redirect.js.es6 b/app/assets/javascripts/discourse/components/links-redirect.js.es6 index 80dddd4e005..da28b8256ff 100644 --- a/app/assets/javascripts/discourse/components/links-redirect.js.es6 +++ b/app/assets/javascripts/discourse/components/links-redirect.js.es6 @@ -3,7 +3,7 @@ import { selectedText } from "discourse/lib/utilities"; export default Ember.Component.extend({ didInsertElement() { - this._super(); + this._super(...arguments); this.$().on("mouseup.discourse-redirect", "#revisions a", function(e) { // bypass if we are selecting stuff @@ -27,7 +27,7 @@ export default Ember.Component.extend({ }, willDestroyElement() { - this._super(); + this._super(...arguments); this.$().off("mouseup.discourse-redirect", "#revisions a"); } }); diff --git a/app/assets/javascripts/discourse/components/login-modal.js.es6 b/app/assets/javascripts/discourse/components/login-modal.js.es6 index a14304e2bcf..c1c452f6634 100644 --- a/app/assets/javascripts/discourse/components/login-modal.js.es6 +++ b/app/assets/javascripts/discourse/components/login-modal.js.es6 @@ -1,6 +1,6 @@ export default Ember.Component.extend({ didInsertElement() { - this._super(); + this._super(...arguments); const prefillUsername = $("#hidden-login-form input[name=username]").val(); if (prefillUsername) { diff --git a/app/assets/javascripts/discourse/components/mount-widget.js.es6 b/app/assets/javascripts/discourse/components/mount-widget.js.es6 index 92e17685e6a..7e424aeee13 100644 --- a/app/assets/javascripts/discourse/components/mount-widget.js.es6 +++ b/app/assets/javascripts/discourse/components/mount-widget.js.es6 @@ -21,7 +21,7 @@ export default Ember.Component.extend({ dirtyKeys: null, init() { - this._super(); + this._super(...arguments); const name = this.get("widget"); this.register = getRegister(this); diff --git a/app/assets/javascripts/discourse/components/navigation-bar.js.es6 b/app/assets/javascripts/discourse/components/navigation-bar.js.es6 index a8f2580e8c7..7d8adf0010d 100644 --- a/app/assets/javascripts/discourse/components/navigation-bar.js.es6 +++ b/app/assets/javascripts/discourse/components/navigation-bar.js.es6 @@ -11,7 +11,7 @@ export default Ember.Component.extend({ elementId: "navigation-bar", init() { - this._super(); + this._super(...arguments); this.set("connectors", renderedConnectorsFor("extra-nav-item", null, this)); }, diff --git a/app/assets/javascripts/discourse/components/notification-consent-banner.js.es6 b/app/assets/javascripts/discourse/components/notification-consent-banner.js.es6 index 7f63afb553e..8d20705f04c 100644 --- a/app/assets/javascripts/discourse/components/notification-consent-banner.js.es6 +++ b/app/assets/javascripts/discourse/components/notification-consent-banner.js.es6 @@ -46,7 +46,7 @@ export default DesktopNotificationConfig.extend({ actions: { turnon() { - this._super(); + this._super(...arguments); this.set("bannerDismissed", true); }, dismiss() { diff --git a/app/assets/javascripts/discourse/components/plugin-connector.js.es6 b/app/assets/javascripts/discourse/components/plugin-connector.js.es6 index 4d0ece9c6f2..b0bfad2d398 100644 --- a/app/assets/javascripts/discourse/components/plugin-connector.js.es6 +++ b/app/assets/javascripts/discourse/components/plugin-connector.js.es6 @@ -2,7 +2,7 @@ import { observes } from "ember-addons/ember-computed-decorators"; export default Ember.Component.extend({ init() { - this._super(); + this._super(...arguments); const connector = this.get("connector"); this.set("layoutName", connector.templateName); diff --git a/app/assets/javascripts/discourse/components/plugin-outlet.js.es6 b/app/assets/javascripts/discourse/components/plugin-outlet.js.es6 index 3b5a32170f8..97f56b29211 100644 --- a/app/assets/javascripts/discourse/components/plugin-outlet.js.es6 +++ b/app/assets/javascripts/discourse/components/plugin-outlet.js.es6 @@ -42,7 +42,7 @@ export default Ember.Component.extend({ this.set("connectorTagName", ""); } - this._super(); + this._super(...arguments); const name = this.get("name"); if (name) { const args = this.get("args"); diff --git a/app/assets/javascripts/discourse/components/scroll-tracker.js.es6 b/app/assets/javascripts/discourse/components/scroll-tracker.js.es6 index 07ca3a8fc9f..04d99fd8936 100644 --- a/app/assets/javascripts/discourse/components/scroll-tracker.js.es6 +++ b/app/assets/javascripts/discourse/components/scroll-tracker.js.es6 @@ -2,19 +2,19 @@ import Scrolling from "discourse/mixins/scrolling"; export default Ember.Component.extend(Scrolling, { didReceiveAttrs() { - this._super(); + this._super(...arguments); this.set("trackerName", `scroll-tracker-${this.get("name")}`); }, didInsertElement() { - this._super(); + this._super(...arguments); this.bindScrolling({ name: this.get("name") }); }, didRender() { - this._super(); + this._super(...arguments); const data = this.session.get(this.get("trackerName")); if (data && data.position >= 0 && data.tag === this.get("tag")) { @@ -23,13 +23,13 @@ export default Ember.Component.extend(Scrolling, { }, willDestroyElement() { - this._super(); + this._super(...arguments); this.unbindScrolling(this.get("name")); }, scrolled() { - this._super(); + this._super(...arguments); this.session.set(this.get("trackerName"), { position: $(window).scrollTop(), diff --git a/app/assets/javascripts/discourse/components/scrolling-post-stream.js.es6 b/app/assets/javascripts/discourse/components/scrolling-post-stream.js.es6 index 248c362db5d..fc5f0a413a9 100644 --- a/app/assets/javascripts/discourse/components/scrolling-post-stream.js.es6 +++ b/app/assets/javascripts/discourse/components/scrolling-post-stream.js.es6 @@ -263,7 +263,7 @@ export default MountWidget.extend({ }, didInsertElement() { - this._super(); + this._super(...arguments); const debouncedScroll = () => Ember.run.debounce(this, this._scrollTriggered, 10); @@ -313,7 +313,7 @@ export default MountWidget.extend({ }, willDestroyElement() { - this._super(); + this._super(...arguments); $(document).unbind("touchmove.post-stream"); $(window).unbind("scroll.post-stream"); this.appEvents.off("post-stream:refresh"); diff --git a/app/assets/javascripts/discourse/components/search-advanced-options.js.es6 b/app/assets/javascripts/discourse/components/search-advanced-options.js.es6 index 8ae88ca19ff..cbe6564d194 100644 --- a/app/assets/javascripts/discourse/components/search-advanced-options.js.es6 +++ b/app/assets/javascripts/discourse/components/search-advanced-options.js.es6 @@ -64,7 +64,7 @@ export default Ember.Component.extend({ ], init() { - this._super(); + this._super(...arguments); this._init(); Ember.run.scheduleOnce("afterRender", () => { this._update(); diff --git a/app/assets/javascripts/discourse/components/share-popup.js.es6 b/app/assets/javascripts/discourse/components/share-popup.js.es6 index c0aafab997e..29f3f482ce9 100644 --- a/app/assets/javascripts/discourse/components/share-popup.js.es6 +++ b/app/assets/javascripts/discourse/components/share-popup.js.es6 @@ -93,7 +93,7 @@ export default Ember.Component.extend({ }, didInsertElement() { - this._super(); + this._super(...arguments); const $html = $("html"); $html.on("mousedown.outside-share-link", e => { @@ -152,7 +152,7 @@ export default Ember.Component.extend({ }, willDestroyElement() { - this._super(); + this._super(...arguments); $("html") .off("click.discourse-share-link") .off("mousedown.outside-share-link") diff --git a/app/assets/javascripts/discourse/components/site-header.js.es6 b/app/assets/javascripts/discourse/components/site-header.js.es6 index a0dd8a2f9ad..61211e85159 100644 --- a/app/assets/javascripts/discourse/components/site-header.js.es6 +++ b/app/assets/javascripts/discourse/components/site-header.js.es6 @@ -225,7 +225,7 @@ const SiteHeaderComponent = MountWidget.extend(Docking, PanEvents, { }, didInsertElement() { - this._super(); + this._super(...arguments); $(window).on("resize.discourse-menu-panel", () => this.afterRender()); this.appEvents.on("header:show-topic", topic => this.setTopic(topic)); @@ -252,7 +252,7 @@ const SiteHeaderComponent = MountWidget.extend(Docking, PanEvents, { }, willDestroyElement() { - this._super(); + this._super(...arguments); $("body").off("keydown.header"); $(window).off("resize.discourse-menu-panel"); diff --git a/app/assets/javascripts/discourse/components/text-overflow.js.es6 b/app/assets/javascripts/discourse/components/text-overflow.js.es6 index 3fd2ade74c0..905ae32a5af 100644 --- a/app/assets/javascripts/discourse/components/text-overflow.js.es6 +++ b/app/assets/javascripts/discourse/components/text-overflow.js.es6 @@ -1,6 +1,6 @@ export default Ember.Component.extend({ didInsertElement() { - this._super(); + this._super(...arguments); Ember.run.next(null, () => { this.$() .find("hr") diff --git a/app/assets/javascripts/discourse/components/topic-entrance.js.es6 b/app/assets/javascripts/discourse/components/topic-entrance.js.es6 index 216f024fc60..2ded0e7314e 100644 --- a/app/assets/javascripts/discourse/components/topic-entrance.js.es6 +++ b/app/assets/javascripts/discourse/components/topic-entrance.js.es6 @@ -52,7 +52,7 @@ export default Ember.Component.extend(CleansUp, { bottomDate: (bumpedDate, showTime) => entranceDate(bumpedDate, showTime), didInsertElement() { - this._super(); + this._super(...arguments); this.appEvents.on("topic-entrance:show", data => this._show(data)); }, diff --git a/app/assets/javascripts/discourse/components/topic-navigation.js.es6 b/app/assets/javascripts/discourse/components/topic-navigation.js.es6 index 833ec837a8e..f2a84c4bfdb 100644 --- a/app/assets/javascripts/discourse/components/topic-navigation.js.es6 +++ b/app/assets/javascripts/discourse/components/topic-navigation.js.es6 @@ -12,7 +12,7 @@ export default Ember.Component.extend(PanEvents, { isPanning: false, init() { - this._super(); + this._super(...arguments); this.set("info", Ember.Object.create()); }, @@ -176,7 +176,7 @@ export default Ember.Component.extend(PanEvents, { }, didInsertElement() { - this._super(); + this._super(...arguments); this.appEvents .on("topic:current-post-scrolled", this, this._topicScrolled) @@ -198,7 +198,7 @@ export default Ember.Component.extend(PanEvents, { }, willDestroyElement() { - this._super(); + this._super(...arguments); this.appEvents .off("topic:current-post-scrolled", this, this._topicScrolled) diff --git a/app/assets/javascripts/discourse/components/topic-progress.js.es6 b/app/assets/javascripts/discourse/components/topic-progress.js.es6 index a8370c06835..d77d7f7cbe1 100644 --- a/app/assets/javascripts/discourse/components/topic-progress.js.es6 +++ b/app/assets/javascripts/discourse/components/topic-progress.js.es6 @@ -89,7 +89,7 @@ export default Ember.Component.extend({ }, didInsertElement() { - this._super(); + this._super(...arguments); this.appEvents .on("composer:will-open", this, this._dock) @@ -113,7 +113,7 @@ export default Ember.Component.extend({ }, willDestroyElement() { - this._super(); + this._super(...arguments); this.appEvents .off("composer:will-open", this, this._dock) .off("composer:resized", this, this._dock) diff --git a/app/assets/javascripts/discourse/components/topic-timeline.js.es6 b/app/assets/javascripts/discourse/components/topic-timeline.js.es6 index e276e7a3972..14f8db0a049 100644 --- a/app/assets/javascripts/discourse/components/topic-timeline.js.es6 +++ b/app/assets/javascripts/discourse/components/topic-timeline.js.es6 @@ -83,7 +83,7 @@ export default MountWidget.extend(Docking, { }, didInsertElement() { - this._super(); + this._super(...arguments); if (this.get("fullscreen") && !this.get("addShowClass")) { Ember.run.next(() => { diff --git a/app/assets/javascripts/discourse/components/user-card-contents.js.es6 b/app/assets/javascripts/discourse/components/user-card-contents.js.es6 index 0f34c1eb2c2..d13fcd101c1 100644 --- a/app/assets/javascripts/discourse/components/user-card-contents.js.es6 +++ b/app/assets/javascripts/discourse/components/user-card-contents.js.es6 @@ -158,11 +158,11 @@ export default Ember.Component.extend( }, didInsertElement() { - this._super(); + this._super(...arguments); }, _close() { - this._super(); + this._super(...arguments); this.setProperties({ user: null, topicPostCount: null diff --git a/app/assets/javascripts/discourse/components/user-notifications-large.js.es6 b/app/assets/javascripts/discourse/components/user-notifications-large.js.es6 index d1141947881..ec896cb6c86 100644 --- a/app/assets/javascripts/discourse/components/user-notifications-large.js.es6 +++ b/app/assets/javascripts/discourse/components/user-notifications-large.js.es6 @@ -5,7 +5,7 @@ export default MountWidget.extend({ widget: "user-notifications-large", init() { - this._super(); + this._super(...arguments); this.args = { notifications: this.get("notifications") }; }, diff --git a/app/assets/javascripts/discourse/components/user-selector.js.es6 b/app/assets/javascripts/discourse/components/user-selector.js.es6 index cdd9aba2809..e07f06ccf4a 100644 --- a/app/assets/javascripts/discourse/components/user-selector.js.es6 +++ b/app/assets/javascripts/discourse/components/user-selector.js.es6 @@ -15,7 +15,7 @@ export default TextField.extend({ }, didInsertElement(opts) { - this._super(); + this._super(...arguments); const bool = n => { const val = this.get(n); @@ -106,7 +106,7 @@ export default TextField.extend({ }, willDestroyElement() { - this._super(); + this._super(...arguments); this.$().autocomplete("destroy"); }, diff --git a/app/assets/javascripts/discourse/components/watch-read.js.es6 b/app/assets/javascripts/discourse/components/watch-read.js.es6 index 3a77457477e..7cca41ab8b5 100644 --- a/app/assets/javascripts/discourse/components/watch-read.js.es6 +++ b/app/assets/javascripts/discourse/components/watch-read.js.es6 @@ -2,7 +2,7 @@ import isElementInViewport from "discourse/lib/is-element-in-viewport"; export default Ember.Component.extend({ didInsertElement() { - this._super(); + this._super(...arguments); const currentUser = this.currentUser; if (!currentUser) { return; @@ -20,7 +20,7 @@ export default Ember.Component.extend({ }, willDestroyElement() { - this._super(); + this._super(...arguments); $(window).off("load.faq resize.faq scroll.faq"); } }); diff --git a/app/assets/javascripts/discourse/controllers/group-manage-logs.js.es6 b/app/assets/javascripts/discourse/controllers/group-manage-logs.js.es6 index 6ae21e10a87..5f301f38716 100644 --- a/app/assets/javascripts/discourse/controllers/group-manage-logs.js.es6 +++ b/app/assets/javascripts/discourse/controllers/group-manage-logs.js.es6 @@ -10,7 +10,7 @@ export default Ember.Controller.extend({ application: Ember.inject.controller(), init() { - this._super(); + this._super(...arguments); this.set("filters", Ember.Object.create()); }, diff --git a/app/assets/javascripts/discourse/controllers/group.js.es6 b/app/assets/javascripts/discourse/controllers/group.js.es6 index f23f675fa12..dcb095282b6 100644 --- a/app/assets/javascripts/discourse/controllers/group.js.es6 +++ b/app/assets/javascripts/discourse/controllers/group.js.es6 @@ -2,7 +2,7 @@ import { default as computed } from "ember-addons/ember-computed-decorators"; const Tab = Ember.Object.extend({ init() { - this._super(); + this._super(...arguments); let name = this.get("name"); this.set("route", this.get("route") || `group.` + name); this.set("message", I18n.t(`groups.${this.get("i18nKey") || name}`)); diff --git a/app/assets/javascripts/discourse/controllers/topic.js.es6 b/app/assets/javascripts/discourse/controllers/topic.js.es6 index 0b92cd9a485..c8ae6d66fcf 100644 --- a/app/assets/javascripts/discourse/controllers/topic.js.es6 +++ b/app/assets/javascripts/discourse/controllers/topic.js.es6 @@ -107,7 +107,7 @@ export default Ember.Controller.extend(bufferedProperty("model"), { }, init() { - this._super(); + this._super(...arguments); this.appEvents.on("post:show-revision", (postNumber, revision) => { const post = this.model.get("postStream").postForPostNumber(postNumber); if (!post) { diff --git a/app/assets/javascripts/discourse/controllers/user-invited-show.js.es6 b/app/assets/javascripts/discourse/controllers/user-invited-show.js.es6 index 9d6c3c4c4df..2707013a88e 100644 --- a/app/assets/javascripts/discourse/controllers/user-invited-show.js.es6 +++ b/app/assets/javascripts/discourse/controllers/user-invited-show.js.es6 @@ -15,7 +15,7 @@ export default Ember.Controller.extend({ rescindedAll: false, init: function() { - this._super(); + this._super(...arguments); this.set("searchTerm", ""); }, diff --git a/app/assets/javascripts/discourse/lib/static-route-builder.js.es6 b/app/assets/javascripts/discourse/lib/static-route-builder.js.es6 index 6e42cc7a013..efc97411c0a 100644 --- a/app/assets/javascripts/discourse/lib/static-route-builder.js.es6 +++ b/app/assets/javascripts/discourse/lib/static-route-builder.js.es6 @@ -22,7 +22,7 @@ export default function(page) { }, activate() { - this._super(); + this._super(...arguments); jumpToElement(document.location.hash.substr(1)); }, diff --git a/app/assets/javascripts/discourse/mixins/add-archetype-class.js.es6 b/app/assets/javascripts/discourse/mixins/add-archetype-class.js.es6 index ac8e99e2803..eb157699cca 100644 --- a/app/assets/javascripts/discourse/mixins/add-archetype-class.js.es6 +++ b/app/assets/javascripts/discourse/mixins/add-archetype-class.js.es6 @@ -22,7 +22,7 @@ export default { }, willDestroyElement() { - this._super(); + this._super(...arguments); this._cleanUp(); } }; diff --git a/app/assets/javascripts/discourse/mixins/card-contents-base.js.es6 b/app/assets/javascripts/discourse/mixins/card-contents-base.js.es6 index 931d2356fe6..954fcafa0c7 100644 --- a/app/assets/javascripts/discourse/mixins/card-contents-base.js.es6 +++ b/app/assets/javascripts/discourse/mixins/card-contents-base.js.es6 @@ -67,7 +67,7 @@ export default Ember.Mixin.create({ }, didInsertElement() { - this._super(); + this._super(...arguments); afterTransition(this.$(), this._hide.bind(this)); const id = this.get("elementId"); const triggeringLinkClass = this.get("triggeringLinkClass"); @@ -226,7 +226,7 @@ export default Ember.Mixin.create({ }, willDestroyElement() { - this._super(); + this._super(...arguments); const clickOutsideEventName = this.get("clickOutsideEventName"); const clickDataExpand = this.get("clickDataExpand"); const clickMention = this.get("clickMention"); diff --git a/app/assets/javascripts/discourse/mixins/docking.js.es6 b/app/assets/javascripts/discourse/mixins/docking.js.es6 index c33b385cbb3..800898ae70a 100644 --- a/app/assets/javascripts/discourse/mixins/docking.js.es6 +++ b/app/assets/javascripts/discourse/mixins/docking.js.es6 @@ -10,7 +10,7 @@ export default Ember.Mixin.create({ queueDockCheck: null, init() { - this._super(); + this._super(...arguments); this.queueDockCheck = () => { Ember.run.debounce(this, this.safeDockCheck, 5); }; @@ -24,7 +24,7 @@ export default Ember.Mixin.create({ }, didInsertElement() { - this._super(); + this._super(...arguments); $(window).bind("scroll.discourse-dock", this.queueDockCheck); $(document).bind("touchmove.discourse-dock", this.queueDockCheck); @@ -33,7 +33,7 @@ export default Ember.Mixin.create({ }, willDestroyElement() { - this._super(); + this._super(...arguments); $(window).unbind("scroll.discourse-dock", this.queueDockCheck); $(document).unbind("touchmove.discourse-dock", this.queueDockCheck); } diff --git a/app/assets/javascripts/discourse/mixins/pan-events.js.es6 b/app/assets/javascripts/discourse/mixins/pan-events.js.es6 index f3c1623ee64..a83cffbc300 100644 --- a/app/assets/javascripts/discourse/mixins/pan-events.js.es6 +++ b/app/assets/javascripts/discourse/mixins/pan-events.js.es6 @@ -11,7 +11,7 @@ export default Ember.Mixin.create({ _panState: null, didInsertElement() { - this._super(); + this._super(...arguments); if (this.site.mobileView) { if ("onpointerdown" in document.documentElement) { @@ -35,7 +35,7 @@ export default Ember.Mixin.create({ }, willDestroyElement() { - this._super(); + this._super(...arguments); if (this.site.mobileView) { this.$() diff --git a/app/assets/javascripts/discourse/mixins/password-validation.js.es6 b/app/assets/javascripts/discourse/mixins/password-validation.js.es6 index 7a05424e826..7f2ec93d816 100644 --- a/app/assets/javascripts/discourse/mixins/password-validation.js.es6 +++ b/app/assets/javascripts/discourse/mixins/password-validation.js.es6 @@ -5,7 +5,7 @@ export default Ember.Mixin.create({ rejectedPasswords: null, init() { - this._super(); + this._super(...arguments); this.set("rejectedPasswords", []); this.set("rejectedPasswordsMessages", new Map()); }, diff --git a/app/assets/javascripts/discourse/mixins/scroll-top.js.es6 b/app/assets/javascripts/discourse/mixins/scroll-top.js.es6 index 41506cca31a..630227b8fa5 100644 --- a/app/assets/javascripts/discourse/mixins/scroll-top.js.es6 +++ b/app/assets/javascripts/discourse/mixins/scroll-top.js.es6 @@ -22,7 +22,7 @@ export default Ember.Mixin.create({ deprecated( "The `ScrollTop` mixin is deprecated. Replace it with a `{{d-section}}` component" ); - this._super(); + this._super(...arguments); scrollTop(); } }); diff --git a/app/assets/javascripts/discourse/models/category-list.js.es6 b/app/assets/javascripts/discourse/models/category-list.js.es6 index 2b49a62b52e..aff72e7fa30 100644 --- a/app/assets/javascripts/discourse/models/category-list.js.es6 +++ b/app/assets/javascripts/discourse/models/category-list.js.es6 @@ -4,7 +4,7 @@ import { ajax } from "discourse/lib/ajax"; const CategoryList = Ember.ArrayProxy.extend({ init() { this.set("content", []); - this._super(); + this._super(...arguments); } }); diff --git a/app/assets/javascripts/discourse/models/store.js.es6 b/app/assets/javascripts/discourse/models/store.js.es6 index 338e4a7ed0d..d1af36337eb 100644 --- a/app/assets/javascripts/discourse/models/store.js.es6 +++ b/app/assets/javascripts/discourse/models/store.js.es6 @@ -52,7 +52,7 @@ export default Ember.Object.extend({ }, init() { - this._super(); + this._super(...arguments); this.register = this.register || getRegister(this); }, diff --git a/app/assets/javascripts/discourse/models/user-drafts-stream.js.es6 b/app/assets/javascripts/discourse/models/user-drafts-stream.js.es6 index 0b18349d578..3beef17970a 100644 --- a/app/assets/javascripts/discourse/models/user-drafts-stream.js.es6 +++ b/app/assets/javascripts/discourse/models/user-drafts-stream.js.es6 @@ -14,7 +14,7 @@ export default RestModel.extend({ loaded: false, init() { - this._super(); + this._super(...arguments); this.setProperties({ itemsLoaded: 0, content: [], diff --git a/app/assets/javascripts/discourse/pre-initializers/dynamic-route-builders.js.es6 b/app/assets/javascripts/discourse/pre-initializers/dynamic-route-builders.js.es6 index de131f39b26..a8de4fc07da 100644 --- a/app/assets/javascripts/discourse/pre-initializers/dynamic-route-builders.js.es6 +++ b/app/assets/javascripts/discourse/pre-initializers/dynamic-route-builders.js.es6 @@ -56,7 +56,7 @@ export default { willTransition() { Discourse.User.currentProp("should_be_redirected_to_top", false); Discourse.User.currentProp("redirected_to_top.reason", null); - return this._super(); + return this._super(...arguments); } } }); diff --git a/app/assets/javascripts/discourse/routes/application.js.es6 b/app/assets/javascripts/discourse/routes/application.js.es6 index 451ceceec68..c8f38d6d390 100644 --- a/app/assets/javascripts/discourse/routes/application.js.es6 +++ b/app/assets/javascripts/discourse/routes/application.js.es6 @@ -48,7 +48,7 @@ const ApplicationRoute = Discourse.Route.extend(OpenComposer, { willTransition() { var router = getOwner(this).lookup("router:main"); Ember.run.once(router, router.trigger, "willTransition"); - return this._super(); + return this._super(...arguments); }, postWasEnqueued(details) { @@ -206,7 +206,7 @@ const ApplicationRoute = Discourse.Route.extend(OpenComposer, { }, activate() { - this._super(); + this._super(...arguments); Ember.run.next(function() { // Support for callbacks once the application has activated ApplicationRoute.trigger("activate"); diff --git a/app/assets/javascripts/discourse/routes/build-category-route.js.es6 b/app/assets/javascripts/discourse/routes/build-category-route.js.es6 index 7f2d10d24c7..eac9ea20175 100644 --- a/app/assets/javascripts/discourse/routes/build-category-route.js.es6 +++ b/app/assets/javascripts/discourse/routes/build-category-route.js.es6 @@ -185,7 +185,7 @@ export default (filterArg, params) => { }, deactivate() { - this._super(); + this._super(...arguments); this.searchService.set("searchContext", null); }, diff --git a/app/assets/javascripts/discourse/routes/discourse.js.es6 b/app/assets/javascripts/discourse/routes/discourse.js.es6 index 750d4961092..6961e8e3b5f 100644 --- a/app/assets/javascripts/discourse/routes/discourse.js.es6 +++ b/app/assets/javascripts/discourse/routes/discourse.js.es6 @@ -9,7 +9,7 @@ const DiscourseRoute = Ember.Route.extend({ resfreshQueryWithoutTransition: false, activate() { - this._super(); + this._super(...arguments); if (this.get("showFooter")) { this.controllerFor("application").set("showFooter", true); } @@ -17,7 +17,7 @@ const DiscourseRoute = Ember.Route.extend({ refresh() { if (!this.refreshQueryWithoutTransition) { - return this._super(); + return this._super(...arguments); } const router = getOwner(this).lookup("router:main"); diff --git a/app/assets/javascripts/discourse/routes/preferences-about.js.es6 b/app/assets/javascripts/discourse/routes/preferences-about.js.es6 index db4190ea6f9..d6e29ec7812 100644 --- a/app/assets/javascripts/discourse/routes/preferences-about.js.es6 +++ b/app/assets/javascripts/discourse/routes/preferences-about.js.es6 @@ -17,7 +17,7 @@ export default RestrictedUserRoute.extend({ // A bit odd, but if we leave to /preferences we need to re-render that outlet deactivate: function() { - this._super(); + this._super(...arguments); this.render("preferences", { into: "user", controller: "preferences" }); }, diff --git a/app/assets/javascripts/discourse/routes/preferences-email.js.es6 b/app/assets/javascripts/discourse/routes/preferences-email.js.es6 index 5b706bdda14..c3fb268c4d6 100644 --- a/app/assets/javascripts/discourse/routes/preferences-email.js.es6 +++ b/app/assets/javascripts/discourse/routes/preferences-email.js.es6 @@ -18,7 +18,7 @@ export default RestrictedUserRoute.extend({ // A bit odd, but if we leave to /preferences we need to re-render that outlet deactivate: function() { - this._super(); + this._super(...arguments); this.render("preferences", { into: "user", controller: "preferences" }); } }); diff --git a/app/assets/javascripts/discourse/routes/preferences-username.js.es6 b/app/assets/javascripts/discourse/routes/preferences-username.js.es6 index 960710047c6..a556efd6be5 100644 --- a/app/assets/javascripts/discourse/routes/preferences-username.js.es6 +++ b/app/assets/javascripts/discourse/routes/preferences-username.js.es6 @@ -13,7 +13,7 @@ export default RestrictedUserRoute.extend({ // A bit odd, but if we leave to /preferences we need to re-render that outlet deactivate: function() { - this._super(); + this._super(...arguments); this.render("preferences", { into: "user", controller: "preferences" }); }, diff --git a/app/assets/javascripts/discourse/routes/topic-from-params.js.es6 b/app/assets/javascripts/discourse/routes/topic-from-params.js.es6 index d3ec450f21e..ebb7532673a 100644 --- a/app/assets/javascripts/discourse/routes/topic-from-params.js.es6 +++ b/app/assets/javascripts/discourse/routes/topic-from-params.js.es6 @@ -9,7 +9,7 @@ export default Discourse.Route.extend({ }, deactivate() { - this._super(); + this._super(...arguments); this.controllerFor("topic").unsubscribe(); }, diff --git a/app/assets/javascripts/discourse/routes/topic.js.es6 b/app/assets/javascripts/discourse/routes/topic.js.es6 index e1b36bfebaa..c6e4cf42080 100644 --- a/app/assets/javascripts/discourse/routes/topic.js.es6 +++ b/app/assets/javascripts/discourse/routes/topic.js.es6 @@ -165,7 +165,7 @@ const TopicRoute = Discourse.Route.extend({ }, willTransition() { - this._super(); + this._super(...arguments); Ember.run.cancel(scheduledReplace); isTransitioning = true; return true; @@ -227,7 +227,7 @@ const TopicRoute = Discourse.Route.extend({ }, activate() { - this._super(); + this._super(...arguments); isTransitioning = false; const topic = this.modelFor("topic"); @@ -235,7 +235,7 @@ const TopicRoute = Discourse.Route.extend({ }, deactivate() { - this._super(); + this._super(...arguments); this.searchService.set("searchContext", null); this.controllerFor("user-card").set("visible", false); diff --git a/app/assets/javascripts/discourse/routes/user-private-messages.js.es6 b/app/assets/javascripts/discourse/routes/user-private-messages.js.es6 index 01a6052cf4a..2596727a6a3 100644 --- a/app/assets/javascripts/discourse/routes/user-private-messages.js.es6 +++ b/app/assets/javascripts/discourse/routes/user-private-messages.js.es6 @@ -28,7 +28,7 @@ export default Discourse.Route.extend({ actions: { willTransition: function() { - this._super(); + this._super(...arguments); this.controllerFor("user").set("pmView", null); return true; } diff --git a/app/assets/javascripts/discourse/routes/user.js.es6 b/app/assets/javascripts/discourse/routes/user.js.es6 index 4757ccff070..c90353c7549 100644 --- a/app/assets/javascripts/discourse/routes/user.js.es6 +++ b/app/assets/javascripts/discourse/routes/user.js.es6 @@ -68,7 +68,7 @@ export default Discourse.Route.extend({ }, activate() { - this._super(); + this._super(...arguments); const user = this.modelFor("user"); this.messageBus.subscribe("/u/" + user.get("username_lower"), function( data @@ -78,7 +78,7 @@ export default Discourse.Route.extend({ }, deactivate() { - this._super(); + this._super(...arguments); this.messageBus.unsubscribe( "/u/" + this.modelFor("user").get("username_lower") ); diff --git a/app/assets/javascripts/select-kit/components/admin-agree-flag-dropdown.js.es6 b/app/assets/javascripts/select-kit/components/admin-agree-flag-dropdown.js.es6 index b7988a0f907..0a7af1b3515 100644 --- a/app/assets/javascripts/select-kit/components/admin-agree-flag-dropdown.js.es6 +++ b/app/assets/javascripts/select-kit/components/admin-agree-flag-dropdown.js.es6 @@ -10,7 +10,7 @@ export default DropdownSelectBox.extend({ headerIcon: "thumbs-o-up", computeHeaderContent() { - let content = this._super(); + let content = this._super(...arguments); content.name = `${I18n.t("admin.flags.agree")}...`; return content; }, diff --git a/app/assets/javascripts/select-kit/components/admin-delete-flag-dropdown.js.es6 b/app/assets/javascripts/select-kit/components/admin-delete-flag-dropdown.js.es6 index 5e80bc49542..39c9f54bb42 100644 --- a/app/assets/javascripts/select-kit/components/admin-delete-flag-dropdown.js.es6 +++ b/app/assets/javascripts/select-kit/components/admin-delete-flag-dropdown.js.es6 @@ -9,7 +9,7 @@ export default DropdownSelectBox.extend({ headerIcon: "trash-o", computeHeaderContent() { - let content = this._super(); + let content = this._super(...arguments); content.name = `${I18n.t("admin.flags.delete")}...`; return content; }, diff --git a/app/assets/javascripts/select-kit/components/category-chooser.js.es6 b/app/assets/javascripts/select-kit/components/category-chooser.js.es6 index 87dcf59afe5..34cd38b0f82 100644 --- a/app/assets/javascripts/select-kit/components/category-chooser.js.es6 +++ b/app/assets/javascripts/select-kit/components/category-chooser.js.es6 @@ -18,7 +18,7 @@ export default ComboBoxComponent.extend({ permissionType: PermissionType.FULL, init() { - this._super(); + this._super(...arguments); this.get("rowComponentOptions").setProperties({ allowUncategorized: this.get("allowUncategorized") @@ -71,7 +71,7 @@ export default ComboBoxComponent.extend({ }, computeHeaderContent() { - let content = this._super(); + let content = this._super(...arguments); if (this.get("hasSelection")) { const category = Category.findById(content.value); diff --git a/app/assets/javascripts/select-kit/components/category-drop.js.es6 b/app/assets/javascripts/select-kit/components/category-drop.js.es6 index 3fa4470e96c..e62b894225e 100644 --- a/app/assets/javascripts/select-kit/components/category-drop.js.es6 +++ b/app/assets/javascripts/select-kit/components/category-drop.js.es6 @@ -80,7 +80,7 @@ export default ComboBoxComponent.extend({ }, computeHeaderContent() { - let content = this._super(); + let content = this._super(...arguments); if (this.get("hasSelection")) { const category = Category.findById(content.value); diff --git a/app/assets/javascripts/select-kit/components/category-drop/category-drop-header.js.es6 b/app/assets/javascripts/select-kit/components/category-drop/category-drop-header.js.es6 index 9eb91db9695..7c837090633 100644 --- a/app/assets/javascripts/select-kit/components/category-drop/category-drop-header.js.es6 +++ b/app/assets/javascripts/select-kit/components/category-drop/category-drop-header.js.es6 @@ -55,7 +55,7 @@ export default ComboBoxSelectBoxHeaderComponent.extend({ }, didRender() { - this._super(); + this._super(...arguments); this.$().attr("style", this.get("categoryStyle")); this.$(".caret-icon").attr("style", this.get("categoryStyle")); diff --git a/app/assets/javascripts/select-kit/components/category-selector.js.es6 b/app/assets/javascripts/select-kit/components/category-selector.js.es6 index 58024db0fe6..53aed68b1e5 100644 --- a/app/assets/javascripts/select-kit/components/category-selector.js.es6 +++ b/app/assets/javascripts/select-kit/components/category-selector.js.es6 @@ -12,7 +12,7 @@ export default MultiSelectComponent.extend({ allowUncategorized: true, init() { - this._super(); + this._super(...arguments); if (!this.get("categories")) this.set("categories", []); if (!this.get("blacklist")) this.set("blacklist", []); diff --git a/app/assets/javascripts/select-kit/components/combo-box.js.es6 b/app/assets/javascripts/select-kit/components/combo-box.js.es6 index 8796036b840..944a64e626f 100644 --- a/app/assets/javascripts/select-kit/components/combo-box.js.es6 +++ b/app/assets/javascripts/select-kit/components/combo-box.js.es6 @@ -15,7 +15,7 @@ export default SingleSelectComponent.extend({ clearable: false, computeHeaderContent() { - let content = this._super(); + let content = this._super(...arguments); content.hasSelection = this.get("hasSelection"); return content; }, diff --git a/app/assets/javascripts/select-kit/components/composer-actions.js.es6 b/app/assets/javascripts/select-kit/components/composer-actions.js.es6 index 7f19ae5bd14..19f5df0b538 100644 --- a/app/assets/javascripts/select-kit/components/composer-actions.js.es6 +++ b/app/assets/javascripts/select-kit/components/composer-actions.js.es6 @@ -30,7 +30,7 @@ export default DropdownSelectBoxComponent.extend({ isHidden: Ember.computed.empty("content"), didReceiveAttrs() { - this._super(); + this._super(...arguments); // if we change topic we want to change both snapshots if ( @@ -53,7 +53,7 @@ export default DropdownSelectBoxComponent.extend({ }, computeHeaderContent() { - let content = this._super(); + let content = this._super(...arguments); switch (this.get("action")) { case PRIVATE_MESSAGE: diff --git a/app/assets/javascripts/select-kit/components/dropdown-select-box.js.es6 b/app/assets/javascripts/select-kit/components/dropdown-select-box.js.es6 index 0b540b47885..d510c2f2200 100644 --- a/app/assets/javascripts/select-kit/components/dropdown-select-box.js.es6 +++ b/app/assets/javascripts/select-kit/components/dropdown-select-box.js.es6 @@ -26,7 +26,7 @@ export default SingleSelectComponent.extend({ }, didSelect() { - this._super(); + this._super(...arguments); this.close(); } }); diff --git a/app/assets/javascripts/select-kit/components/future-date-input-selector.js.es6 b/app/assets/javascripts/select-kit/components/future-date-input-selector.js.es6 index 8115fd3d976..447c5e25cc0 100644 --- a/app/assets/javascripts/select-kit/components/future-date-input-selector.js.es6 +++ b/app/assets/javascripts/select-kit/components/future-date-input-selector.js.es6 @@ -169,7 +169,7 @@ export default ComboBoxComponent.extend(DatetimeMixin, { "future-date-input-selector/future-date-input-selector-header", computeHeaderContent() { - let content = this._super(); + let content = this._super(...arguments); content.datetime = this._computeDatetimeForValue(this.get("computedValue")); content.name = this.get("selection.name") || content.name; content.hasSelection = this.get("hasSelection"); diff --git a/app/assets/javascripts/select-kit/components/group-dropdown.js.es6 b/app/assets/javascripts/select-kit/components/group-dropdown.js.es6 index 6a67caf9571..3b0376a2621 100644 --- a/app/assets/javascripts/select-kit/components/group-dropdown.js.es6 +++ b/app/assets/javascripts/select-kit/components/group-dropdown.js.es6 @@ -18,7 +18,7 @@ export default ComboBoxComponent.extend({ }, computeHeaderContent() { - let content = this._super(); + let content = this._super(...arguments); if (!this.get("hasSelection")) { content.label = `${I18n.t("groups.index.all")}`; diff --git a/app/assets/javascripts/select-kit/components/list-setting.js.es6 b/app/assets/javascripts/select-kit/components/list-setting.js.es6 index 6cf37e05897..d9eb18f53fd 100644 --- a/app/assets/javascripts/select-kit/components/list-setting.js.es6 +++ b/app/assets/javascripts/select-kit/components/list-setting.js.es6 @@ -10,7 +10,7 @@ export default MultiSelectComponent.extend({ filterable: true, init() { - this._super(); + this._super(...arguments); if (!isNone(this.get("settingName"))) { this.set("nameProperty", this.get("settingName")); diff --git a/app/assets/javascripts/select-kit/components/mini-tag-chooser.js.es6 b/app/assets/javascripts/select-kit/components/mini-tag-chooser.js.es6 index f263fc1789b..662d6c43849 100644 --- a/app/assets/javascripts/select-kit/components/mini-tag-chooser.js.es6 +++ b/app/assets/javascripts/select-kit/components/mini-tag-chooser.js.es6 @@ -136,7 +136,7 @@ export default ComboBox.extend(TagsMixin, { }, computeHeaderContent() { - let content = this._super(); + let content = this._super(...arguments); const joinedTags = this.get("selection") .map(s => Ember.get(s, "value")) diff --git a/app/assets/javascripts/select-kit/components/multi-select.js.es6 b/app/assets/javascripts/select-kit/components/multi-select.js.es6 index 2f83643cd92..880f05e7763 100644 --- a/app/assets/javascripts/select-kit/components/multi-select.js.es6 +++ b/app/assets/javascripts/select-kit/components/multi-select.js.es6 @@ -23,7 +23,7 @@ export default SelectKitComponent.extend({ values: null, init() { - this._super(); + this._super(...arguments); this.set("computedValues", []); diff --git a/app/assets/javascripts/select-kit/components/notifications-button.js.es6 b/app/assets/javascripts/select-kit/components/notifications-button.js.es6 index b19e6662a5e..8629739ad50 100644 --- a/app/assets/javascripts/select-kit/components/notifications-button.js.es6 +++ b/app/assets/javascripts/select-kit/components/notifications-button.js.es6 @@ -37,7 +37,7 @@ export default DropdownSelectBoxComponent.extend({ iconForSelectedDetails: Ember.computed.alias("selectedDetails.icon"), computeHeaderContent() { - let content = this._super(); + let content = this._super(...arguments); content.name = I18n.t( `${this.get("i18nPrefix")}.${this.get("selectedDetails.key")}${this.get( "i18nPostfix" diff --git a/app/assets/javascripts/select-kit/components/pinned-options.js.es6 b/app/assets/javascripts/select-kit/components/pinned-options.js.es6 index d32ab062d39..e13925701d3 100644 --- a/app/assets/javascripts/select-kit/components/pinned-options.js.es6 +++ b/app/assets/javascripts/select-kit/components/pinned-options.js.es6 @@ -10,7 +10,7 @@ export default DropdownSelectBoxComponent.extend({ autoHighlight() {}, computeHeaderContent() { - let content = this._super(); + let content = this._super(...arguments); const pinnedGlobally = this.get("topic.pinned_globally"); const pinned = this.get("computedValue"); const globally = pinnedGlobally ? "_globally" : ""; diff --git a/app/assets/javascripts/select-kit/components/search-advanced-category-chooser.js.es6 b/app/assets/javascripts/select-kit/components/search-advanced-category-chooser.js.es6 index f454ff1194c..fe49dbca6c9 100644 --- a/app/assets/javascripts/select-kit/components/search-advanced-category-chooser.js.es6 +++ b/app/assets/javascripts/select-kit/components/search-advanced-category-chooser.js.es6 @@ -11,7 +11,7 @@ export default CategoryChooserComponent.extend({ permissionType: null, init() { - this._super(); + this._super(...arguments); this.get("rowComponentOptions").setProperties({ displayCategoryDescription: false diff --git a/app/assets/javascripts/select-kit/components/tag-chooser.js.es6 b/app/assets/javascripts/select-kit/components/tag-chooser.js.es6 index 807b86baf65..46ece3ca5a7 100644 --- a/app/assets/javascripts/select-kit/components/tag-chooser.js.es6 +++ b/app/assets/javascripts/select-kit/components/tag-chooser.js.es6 @@ -16,7 +16,7 @@ export default MultiSelectComponent.extend(TagsMixin, { allowAny: Ember.computed.alias("allowCreate"), init() { - this._super(); + this._super(...arguments); if (this.get("allowCreate") !== false) { this.set("allowCreate", this.site.get("can_create_tag")); diff --git a/app/assets/javascripts/select-kit/components/tag-drop.js.es6 b/app/assets/javascripts/select-kit/components/tag-drop.js.es6 index d5262fedb00..9219a0bda08 100644 --- a/app/assets/javascripts/select-kit/components/tag-drop.js.es6 +++ b/app/assets/javascripts/select-kit/components/tag-drop.js.es6 @@ -42,7 +42,7 @@ export default ComboBoxComponent.extend(TagsMixin, { }, computeHeaderContent() { - let content = this._super(); + let content = this._super(...arguments); if (!content.value) { if (this.get("tagId")) { diff --git a/app/assets/javascripts/select-kit/components/tag-group-chooser.js.es6 b/app/assets/javascripts/select-kit/components/tag-group-chooser.js.es6 index 4a563c0cbd9..c0f7b8492ab 100644 --- a/app/assets/javascripts/select-kit/components/tag-group-chooser.js.es6 +++ b/app/assets/javascripts/select-kit/components/tag-group-chooser.js.es6 @@ -14,7 +14,7 @@ export default MultiSelectComponent.extend(TagsMixin, { allowAny: false, init() { - this._super(); + this._super(...arguments); this.set("templateForRow", rowComponent => { const tag = rowComponent.get("computedContent"); diff --git a/app/assets/javascripts/select-kit/components/topic-footer-mobile-dropdown.js.es6 b/app/assets/javascripts/select-kit/components/topic-footer-mobile-dropdown.js.es6 index c83b53b66b0..28cebf0eb34 100644 --- a/app/assets/javascripts/select-kit/components/topic-footer-mobile-dropdown.js.es6 +++ b/app/assets/javascripts/select-kit/components/topic-footer-mobile-dropdown.js.es6 @@ -8,7 +8,7 @@ export default ComboBoxComponent.extend({ allowInitialValueMutation: false, computeHeaderContent() { - let content = this._super(); + let content = this._super(...arguments); content.name = I18n.t("topic.controls"); return content; }, diff --git a/app/assets/javascripts/select-kit/mixins/dom-helpers.js.es6 b/app/assets/javascripts/select-kit/mixins/dom-helpers.js.es6 index ccbdfc8a7ce..7fb8666db90 100644 --- a/app/assets/javascripts/select-kit/mixins/dom-helpers.js.es6 +++ b/app/assets/javascripts/select-kit/mixins/dom-helpers.js.es6 @@ -2,7 +2,7 @@ import { on } from "ember-addons/ember-computed-decorators"; export default Ember.Mixin.create({ init() { - this._super(); + this._super(...arguments); this._previousScrollParentOverflow = null; this._previousCSSContext = null; diff --git a/app/assets/javascripts/select-kit/mixins/events.js.es6 b/app/assets/javascripts/select-kit/mixins/events.js.es6 index 508600d1fbc..167fc223e0d 100644 --- a/app/assets/javascripts/select-kit/mixins/events.js.es6 +++ b/app/assets/javascripts/select-kit/mixins/events.js.es6 @@ -1,6 +1,6 @@ export default Ember.Mixin.create({ init() { - this._super(); + this._super(...arguments); this.keys = { TAB: 9, diff --git a/app/assets/javascripts/select-kit/mixins/tags.js.es6 b/app/assets/javascripts/select-kit/mixins/tags.js.es6 index 26438da9f8e..1fbe4588daa 100644 --- a/app/assets/javascripts/select-kit/mixins/tags.js.es6 +++ b/app/assets/javascripts/select-kit/mixins/tags.js.es6 @@ -4,7 +4,7 @@ import { popupAjaxError } from "discourse/lib/ajax-error"; export default Ember.Mixin.create({ willDestroyElement() { - this._super(); + this._super(...arguments); const searchDebounce = this.get("searchDebounce"); if (searchDebounce) run.cancel(searchDebounce); diff --git a/app/assets/javascripts/wizard/components/invite-list.js.es6 b/app/assets/javascripts/wizard/components/invite-list.js.es6 index c625e3096e4..ce0c3034d5f 100644 --- a/app/assets/javascripts/wizard/components/invite-list.js.es6 +++ b/app/assets/javascripts/wizard/components/invite-list.js.es6 @@ -6,7 +6,7 @@ export default Ember.Component.extend({ invalid: false, init() { - this._super(); + this._super(...arguments); this.set("users", []); this.set("roles", [ diff --git a/app/assets/javascripts/wizard/components/wizard-canvas.js.es6 b/app/assets/javascripts/wizard/components/wizard-canvas.js.es6 index 7d413b297a5..ac9d3be8098 100644 --- a/app/assets/javascripts/wizard/components/wizard-canvas.js.es6 +++ b/app/assets/javascripts/wizard/components/wizard-canvas.js.es6 @@ -60,7 +60,7 @@ export default Ember.Component.extend({ particles: null, didInsertElement() { - this._super(); + this._super(...arguments); const canvas = this.$()[0]; this.ctx = canvas.getContext("2d"); @@ -78,7 +78,7 @@ export default Ember.Component.extend({ }, willDestroyElement() { - this._super(); + this._super(...arguments); $(window).off("resize.wizard"); }, diff --git a/app/assets/javascripts/wizard/components/wizard-field-image.js.es6 b/app/assets/javascripts/wizard/components/wizard-field-image.js.es6 index 793a6902c0c..758c6ba0bfc 100644 --- a/app/assets/javascripts/wizard/components/wizard-field-image.js.es6 +++ b/app/assets/javascripts/wizard/components/wizard-field-image.js.es6 @@ -15,7 +15,7 @@ export default Ember.Component.extend({ }, didInsertElement() { - this._super(); + this._super(...arguments); const $upload = this.$(); diff --git a/app/assets/javascripts/wizard/components/wizard-step.js.es6 b/app/assets/javascripts/wizard/components/wizard-step.js.es6 index 567e11df5f3..6a655628836 100644 --- a/app/assets/javascripts/wizard/components/wizard-step.js.es6 +++ b/app/assets/javascripts/wizard/components/wizard-step.js.es6 @@ -27,7 +27,7 @@ export default Ember.Component.extend({ saving: null, didInsertElement() { - this._super(); + this._super(...arguments); this.autoFocus(); }, diff --git a/app/assets/javascripts/wizard/lib/preview.js.es6 b/app/assets/javascripts/wizard/lib/preview.js.es6 index 59732d68682..042df92dff0 100644 --- a/app/assets/javascripts/wizard/lib/preview.js.es6 +++ b/app/assets/javascripts/wizard/lib/preview.js.es6 @@ -36,7 +36,7 @@ export function createPreviewComponent(width, height, obj) { loaded: false, didInsertElement() { - this._super(); + this._super(...arguments); const c = this.$("canvas")[0]; this.ctx = c.getContext("2d"); this.reload(); diff --git a/app/assets/javascripts/wizard/mixins/valid-state.js.es6 b/app/assets/javascripts/wizard/mixins/valid-state.js.es6 index ee00842eace..b2dc3e89540 100644 --- a/app/assets/javascripts/wizard/mixins/valid-state.js.es6 +++ b/app/assets/javascripts/wizard/mixins/valid-state.js.es6 @@ -11,7 +11,7 @@ export default { errorDescription: null, init() { - this._super(); + this._super(...arguments); this.set("_validState", States.UNCHECKED); }, diff --git a/plugins/discourse-narrative-bot/assets/javascripts/initializers/new-user-narrative.js.es6 b/plugins/discourse-narrative-bot/assets/javascripts/initializers/new-user-narrative.js.es6 index d3ece84fc6f..f9b73b13352 100644 --- a/plugins/discourse-narrative-bot/assets/javascripts/initializers/new-user-narrative.js.es6 +++ b/plugins/discourse-narrative-bot/assets/javascripts/initializers/new-user-narrative.js.es6 @@ -7,7 +7,7 @@ function initialize(api) { api.modifyClass("component:site-header", { didInsertElement() { - this._super(); + this._super(...arguments); this.dispatch("header:search-context-trigger", "header"); } }); diff --git a/plugins/poll/assets/javascripts/controllers/poll-ui-builder.js.es6 b/plugins/poll/assets/javascripts/controllers/poll-ui-builder.js.es6 index fc599f349f5..e49621b884b 100644 --- a/plugins/poll/assets/javascripts/controllers/poll-ui-builder.js.es6 +++ b/plugins/poll/assets/javascripts/controllers/poll-ui-builder.js.es6 @@ -14,7 +14,7 @@ export default Ember.Controller.extend({ closedPollResult: "on_close", init() { - this._super(); + this._super(...arguments); this._setupPoll(); }, diff --git a/plugins/poll/assets/javascripts/initializers/extend-for-poll.js.es6 b/plugins/poll/assets/javascripts/initializers/extend-for-poll.js.es6 index edd99f16f9c..4dbdcfd6b90 100644 --- a/plugins/poll/assets/javascripts/initializers/extend-for-poll.js.es6 +++ b/plugins/poll/assets/javascripts/initializers/extend-for-poll.js.es6 @@ -8,7 +8,7 @@ function initializePolls(api) { api.modifyClass("controller:topic", { subscribe() { - this._super(); + this._super(...arguments); this.messageBus.subscribe("/polls/" + this.get("model.id"), msg => { const post = this.get("model.postStream").findLoadedPost(msg.post_id); if (post) { @@ -18,7 +18,7 @@ function initializePolls(api) { }, unsubscribe() { this.messageBus.unsubscribe("/polls/*"); - this._super(); + this._super(...arguments); } });