jquery.uls
jquery.uls copied to clipboard
Calling $(x).uls() with new options doesn't update options
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?
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.
@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?