From 385f0fa76d9a577c07e5c1f434c2430e4c938e9b Mon Sep 17 00:00:00 2001 From: oblomov <102328295+oblomov-dev@users.noreply.github.com> Date: Sun, 24 Dec 2023 14:29:12 +0100 Subject: [PATCH] Update zcl_a2ui5_my_custom_control.clas.abap --- src/zcl_a2ui5_my_custom_control.clas.abap | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/zcl_a2ui5_my_custom_control.clas.abap b/src/zcl_a2ui5_my_custom_control.clas.abap index cd08f52..4e2ba1b 100644 --- a/src/zcl_a2ui5_my_custom_control.clas.abap +++ b/src/zcl_a2ui5_my_custom_control.clas.abap @@ -17,8 +17,7 @@ CLASS zcl_a2ui5_my_custom_control IMPLEMENTATION. METHOD get_js. - result = `jQuery.sap.declare("z2ui5.MyCustomControl");` && |\n| && - `sap.ui.require([` && |\n| && + result = `sap.ui.define("z2ui5/MyCustomControl", [` && |\n| && ` "sap/ui/core/Control"` && |\n| && `], (Control) => {` && |\n| && ` "use strict";` && |\n| &&