From 5c2ccbe8bb10f0f4c1f9eb28c353fafc6c73b577 Mon Sep 17 00:00:00 2001 From: nikita_bartoshuk Date: Thu, 12 Feb 2026 22:58:58 +0300 Subject: [PATCH] syntax refactor --- apps/pdfeditor/main/app/controller/RedactTab.js | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/apps/pdfeditor/main/app/controller/RedactTab.js b/apps/pdfeditor/main/app/controller/RedactTab.js index fbf1005441..dc9d4ad8eb 100644 --- a/apps/pdfeditor/main/app/controller/RedactTab.js +++ b/apps/pdfeditor/main/app/controller/RedactTab.js @@ -233,12 +233,9 @@ define([ }, onShowRedactionsWarning: function (tab) { - var me = this; this.isFileMenuTab = tab === 'file'; - if ( - !this.redactionsWarning || !this.redactionsWarning.isVisible() - ) { + if (!this.redactionsWarning || !this.redactionsWarning.isVisible()) { this.redactionsWarning = Common.UI.warning({ width: 500, msg: this.textUnappliedRedactions, @@ -255,12 +252,12 @@ define([ this.api.ApplyRedact(); this.api.SetRedactTool(false); this.view.btnMarkForRedact.toggle(false); - this.isFileMenuTab ? me.view.fireEvent('file:open') : Common.NotificationCenter.trigger('tab:set-active', tab); + this.isFileMenuTab ? this.view.fireEvent('file:open') : Common.NotificationCenter.trigger('tab:set-active', tab); } else if (btn == 'doNotApply') { this.api.RemoveAllRedact(); this.api.SetRedactTool(false); this.view.btnMarkForRedact.toggle(false); - this.isFileMenuTab ? me.view.fireEvent('file:open') : Common.NotificationCenter.trigger('tab:set-active', tab); + this.isFileMenuTab ? this.view.fireEvent('file:open') : Common.NotificationCenter.trigger('tab:set-active', tab); } else { if (this.isFileMenuTab) { this.view.fireEvent('menu:hide', [this]);