avoid multiple instanciation of the same plugin on the same element.

avoid multiple instanciation of the same plugin on the same element.


Hi all,
new to jquery-ui developpement i'm actually working on a button
plugin.
Actually i activate the rendering by doing something like that:
$('[class*=ui-button]').button();
The problem is if i call this line of code multiple time it renders
buttons inside buttons.
I've used the jquery-ui widget factory and was thinking thtat it will
take care of this for me but apparently not or i've missed something.
If someone could help me on this one i'll be gratefull.
Best regards to all,
Nathan