From 242d43525227297bf88c2bb46982f21ae7b3d215 Mon Sep 17 00:00:00 2001 From: nathangray Date: Fri, 15 May 2020 09:50:38 -0600 Subject: [PATCH] Fix a few remaining usages of free(), which was removed as part of the TypeScript conversion --- admin/js/app.js | 2 +- admin/js/app.ts | 2 +- api/js/jsapi/egw_app.js | 2 +- api/js/jsapi/egw_app.ts | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/admin/js/app.js b/admin/js/app.js index 7fb1c542a9..5de25c8bd4 100644 --- a/admin/js/app.js +++ b/admin/js/app.js @@ -674,7 +674,7 @@ var AdminApp = /** @class */ (function (_super) { if (this.acl_dialog != null) { content = this.acl_dialog.get_value() || {}; // Destroy the dialog - this.acl_dialog.free(); + this.acl_dialog.destroy(); this.acl_dialog = null; } // Re-open the dialog diff --git a/admin/js/app.ts b/admin/js/app.ts index 34c740ff08..c513578e51 100644 --- a/admin/js/app.ts +++ b/admin/js/app.ts @@ -776,7 +776,7 @@ class AdminApp extends EgwApp content = this.acl_dialog.get_value() || {}; // Destroy the dialog - this.acl_dialog.free(); + this.acl_dialog.destroy(); this.acl_dialog = null; } // Re-open the dialog diff --git a/api/js/jsapi/egw_app.js b/api/js/jsapi/egw_app.js index 40dffc100a..e5fa563fea 100644 --- a/api/js/jsapi/egw_app.js +++ b/api/js/jsapi/egw_app.js @@ -619,7 +619,7 @@ var EgwApp = /** @class */ (function () { var favorite_prefix = 'favorite_'; // Clear old, if existing if (this.favorite_popup && this.favorite_popup.group) { - this.favorite_popup.group.free(); + this.favorite_popup.group.destroy(); delete this.favorite_popup; } // Create popup diff --git a/api/js/jsapi/egw_app.ts b/api/js/jsapi/egw_app.ts index 4dad7c7e35..ef745419d5 100644 --- a/api/js/jsapi/egw_app.ts +++ b/api/js/jsapi/egw_app.ts @@ -796,7 +796,7 @@ export abstract class EgwApp // Clear old, if existing if(this.favorite_popup && this.favorite_popup.group) { - this.favorite_popup.group.free(); + this.favorite_popup.group.destroy(); delete this.favorite_popup; }