I created two custom JQuery UI widgets with same name but with different namespaces as given below: First widget:
$.widget('finance.dialog',{....}); // this was created in the file jquery.finance.dialog.js
Second widget:
$.widget('hr.dialog',{.....}); // this was created in the file jquery.hr.dialog.js
Apart from these two, JQuery UI has its own dialog widget (ui.dialog) in the namespace ui.
My question is: Which dialog widget will be called when i call the following in a web page as given below?
$('div#something').dialog();
Please note I include all the three widget variants in the web page.
I understand there are conflicts in the above scenario. How can we invoke a widget function with its namespace so that there will not be any conflicts?