Event pagebeforeshow fires twice - v1.2 and v1.1.1
I have pagebeforeshow setup within the page in the following manner:
$(document).bind('pageinit', function () {
$("#xxxx").on("pagebeforeshow", function(event, data)
{
console.log($(this).attr('id') + " " + event.type + " prevPage: " + data.prevPage.attr("id"));
$('.ui-title').text("xxxx");
getxxxx();
});
});
The getxxxx function fetches some data from server and updates a div. Now on each navigation to the page I see that its being called twice. I have tried with v1.1.1 and v1.2 Alpha and see the same result.
Anyone has any information on this issue? If this is intended can the 2 event calls be differentiated so that extra calls can be aborted...
regards...