I am using AP.dialog.create and on(‘close’) event in a Connect app. If I check my console i get the following messages:
AJS’s create element functionality has been deprecated since 5.9.0.
No alternative will be provided.
Use document.createElement() or jQuery.parseHTML(), or preferably use a templating library.
I found that there is alternative to on(‘close’) event AP.events.on(‘dialog.close’… but from what I seen this does not provide same functionality. The original on(‘close’) event could pass parameters from the dialog to the parent template via data property which the new event doesn’t seem to have.
Should I be worried about this deprecation notice? Should I create the dialog differently? I can rewrite the on close event to circumvent the issue but I don’t know what exactly to do for AP.dialog.create.
Any help would be appreciated!