I'm working on a plugin using the ui widget factory. With a basic JQuery plugin, I can access the selector used by doing something like this...
$.fn.pluginname = function(){
var thisWorks = this.selector;
};
However, when I use the widget factory, the selected element is accessed through the 'this.element' property, and 'this.element.selector' does not work the same way as in my first example. Anyone have a nice way around this? I'm looking through the widget factory source code on GitHub, but I haven't been able to find anything yet.