mirror of
https://github.com/Hopiu/jquery-mobile.git
synced 2026-05-25 06:23:43 +00:00
Converter demo: Don't try to destroy pages that haven't been initialized.
This commit is contained in:
parent
4ba5fe0a6b
commit
d0d9218f6e
1 changed files with 2 additions and 2 deletions
|
|
@ -10,8 +10,8 @@ $(function() {
|
|||
};
|
||||
|
||||
function list() {
|
||||
var ul = $("#conversions").empty().page( "destroy" ),
|
||||
ulEdit = $("#edit-conversions").empty().page( "destroy" );
|
||||
var ul = $("#conversions").empty().filter( ":mobile-page" ).page( "destroy" ),
|
||||
ulEdit = $("#edit-conversions").empty().filter( ":mobile-page" ).page( "destroy" );
|
||||
$.each(all, function(index, conversion) {
|
||||
// if last update was less then a minute ago, don't update
|
||||
if (conversion.type == "currency" && !conversion.rate || conversion.updated && conversion.updated + 60000 < +new Date) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue