I have the following code:
function wait(){ $(document).ready(function() { //alert(\"Dentro de ready\"); document.addEventListener(\"devicere
It isn't:
document.addEventListener("deviceready", init(), true);
it should be:
document.addEventListener("deviceready", init, true);
having the () after init calls that function immediately before the deviceready event is fired.