WordPress: Encapsulating jQuery UI to avoid conflict with other version of jQuery UI that maybe loaded on the same page...
We're developing a WordPress plugin, that has jQuery UI widget, which inherits from UI Dialog.
In WordPress, in order to avoid multiple instances of same js libraries on one page, there is implemented a special queueing mechanism, which resolves dependences, loads libraries in proper order and makes sure that they are loaded only once.
Now, since we are basing our widget on UI Dialog, which also depends on UI Draggable, UI Resizable, etc, we would like to concatenate all these libraries into one, jQuery UI Custom file just like it is usually done on jQuery UI site. But... this approach may cause a conflict with other WordPress plugins, that may use WordPresses native API and hence load their own versions of UI widgets.
Is there any way we can isolate our customized file from the rest of js environment, that potentially maybe pretty crowded with various libraries and multiple jQuery UI widgets of various versions?