cancel
Showing results for 
Search instead for 
Did you mean: 

How to unload a sapui5 library ? Is there any api for it like sap.ui.unload ?

0 Kudos

I want to unload a sapui5 library in onExit of my controller, as one of the library is colliding with an object of an open source library which is used in another controller.

SAPUI5 library causing the issue : resources/sap/ui/thirdparty/require.js

This require.js library has some definition for define function and the open source library 'swagger-ui' looks for some other definition of define function, this conflict causes improper loading of swagger-ui after require.js gets loaded into the browser.

So, I am looking for some way of gracefully unloading of require.js onExit of a controller.

maheshpalavalli
Active Contributor
0 Kudos

Did you try destroy?

If you could provide more information, it would be better. like

what is the sapui5 library are you talking about. You need to provide more context here.

What exactly you want to reset here, you could provide an option in the library to reset or clear the opensource you are using..

When you navigate from one view to another view you would like to reset an object?

Again, more the information, more chances of getting a better answer!!!

Thanks,

Mahesh

Accepted Solutions (0)

Answers (0)