panel refresh() #5507

Closed
leptinella opened this Issue Jan 22, 2013 · 3 comments

Projects

None yet

4 participants

@leptinella

This feature is described here
http://jquerymobile.com/demos/1.3.0-beta.1/docs/panels/methods.html

It doesn't seem to work, throwing the following error:
Uncaught Error: no such method 'refresh' for panel widget instance

Test page:
http://jsbin.com/onibuc/19/
Click "open panel" then "refresh". Expecting panel markup refresh, getting a JS error.

Using jQuery Mobile 1.3.0 beta and jQuery 1.9 in Chrome 24.0.1312.52 m

@arschmitz
Member

I'm very sorry about the the panel widget went through several refactors in development and the docs must have got a bit out of sync. The panel widget does not currently have a refresh method. I wil update the docs to reflect this

@leptinella

Ah! I looked at the code and thought that might have been the deal.

@arschmitz arschmitz was assigned Jan 24, 2013
@jaspermdegroot jaspermdegroot added a commit that closed this issue Jan 26, 2013
@jaspermdegroot jaspermdegroot Docs: Added info about triggering "updatelayout" on panel. Removed re…
…fresh() from methods. Fixes #5507. Also changed in new API docs.
91ba436
@mindoLife

what to do instead

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment