I have a simple home page with multiple views and I want only the first one to be displayed.
It is fine When I initialize the app using
var app = new kendo.mobile.Application();
But when I use document.addEventListener() with deviceReady on a real device it displays all the views and in dojo it does not display anything
Here is the code snippet that I am trying
var app;
var onDeviceReady = function() {
//navigator.splashscreen.hide();
app = new kendo.mobile.Application(document.body,
{
platform:'ios7'
});
}
document.addEventListener('deviceready', onDeviceReady, false);
http://dojo.telerik.com/@phcc1t/AtiVo/2
Views with document.addEventListener()
Could you please let me know where am I going wrong ?