I\'m in the process of converting code from the deprecated .live()
API to .on()
(see the jQuery 1.7 release notes)
I have live events attached
Give this a shot:
$(document).on('click', this.selector, handler);
A jQuery object has a selector
property that represents the selector used to create that object.
Note that the selector is modified with traversal methods, so I would assume that your plugin is generally used upon initial DOM selection.
To avoid using an internal property, you could simply change the API of your plugin to require a selector to be passed explicitly.