Skip to content

Commit

Permalink
refactor: Remove delete to avoid "SyntaxError: Deleting local variabl…
Browse files Browse the repository at this point in the history
…e in strict mode."

(cherry picked from commit 33f86fa)
  • Loading branch information
chrisburr authored and TaykYoku committed Oct 19, 2021
1 parent a78b910 commit 2941fc7
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 12 deletions.
6 changes: 0 additions & 6 deletions src/WebAppDIRAC/WebApp/static/core/js/utils/Tabtheme.js
Original file line number Diff line number Diff line change
Expand Up @@ -504,12 +504,6 @@ Ext.define("Ext.dirac.utils.Tabtheme", {
if (index != -1) {
me.remove(me.items.getAt(index));

/* eslint-disable */

delete oldImg;

/* eslint-enable */

delete me.lastClickedImage;

me.lastClickedImage = null;
Expand Down
3 changes: 0 additions & 3 deletions src/WebAppDIRAC/WebApp/static/core/js/views/tabs/Main.js
Original file line number Diff line number Diff line change
Expand Up @@ -868,9 +868,6 @@ Ext.define("Ext.dirac.views.tabs.Main", {
if (window.location.protocol.startsWith("https") && !moduleName.startsWith("https")) {
var tab = new Ext.dirac.views.tabs.Panel();
tab.oprShowInNewTab(moduleName, moduleName);

delete tab; // eslint-disable-line no-alert

Ext.get("app-dirac-loading").hide();
} else {
me.getRightContainer().createWindow(
Expand Down
3 changes: 0 additions & 3 deletions src/WebAppDIRAC/WebApp/static/core/js/views/tabs/TabPanel.js
Original file line number Diff line number Diff line change
Expand Up @@ -291,9 +291,6 @@ Ext.define("Ext.dirac.views.tabs.TabPanel", {
}
notLoadedStates = [];

// eslint-disable-next-line no-use-before-define
delete notLoadedStates;

return desktop;
},
listeners: {
Expand Down

0 comments on commit 2941fc7

Please sign in to comment.