i have very interesting problem in my Phonegap App for WP8.1. When i use function
document.addEventListener("deviceready",onDeviceReady,false);
function onDeviceReady(){
**obj.alertFunction();**
}
var obj = {
alertFunction: function(){alert('HelloWorld');}
}
nothing is happen, but when i use only alertFunction(); where alertFunction is
function alertFunction(){
alert('Hello');
}
all is OK. On Android is all OK and on Ripple Simulator too. only on Windows Phone device i have this problem. THX for answer :)