jquery.uls icon indicating copy to clipboard operation
jquery.uls copied to clipboard

Calling $(x).uls() with new options doesn't update options

Open bvibber opened this issue 12 years ago • 2 comments

For the Wikipedia PhoneGap app we need to be able to reinitialize options on the ULS.

In this case we need to update both the 'languages' object with a different set of languages, and the 'onSelect' callback.

Currently I'm attempting to reuse the existing ULS but simply reinit with $.uls().

If this isn't meant to be supported, then I'll need to be able to initialize and then discard the ULS, so I can create a new one safely... is that the right thing to do here?

bvibber avatar Nov 10 '12 06:11 bvibber

One problem with creating a new fresh ULS is that the old <div class="uls-menu"> stays around... I can remove it manually perhaps, but have to know about it so it doesn't just eat up more memory in the DOM.

bvibber avatar Nov 10 '12 06:11 bvibber

@brion if this only for PhoneGap and the PhoneGap app is being phased out, can this be closed? Or is this relevant for anything else?

amire80 avatar May 07 '13 13:05 amire80