Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Márcio
Beginner
56 Views

Cannot redefine property: cordova

Im trying to build an app with kendo mobile framework, but it returns error when I run it in simulator:

Cannot redefine property: cordova

Some ideia about what happening? My starting code is:

function onAppReady() {

    if( navigator.splashscreen && navigator.splashscreen.hide ) {   // Cordova API detected
        navigator.splashscreen.hide() ;
    }
            
    app.mobileApp = new kendo.mobile.Application(document.body, {
        initial: 'components/myView/view.html'
    });

}

document.addEventListener("app.Ready", onAppReady, false) ;

 

Tags (2)
0 Kudos
1 Reply
Márcio
Beginner
56 Views

Fixed after changing my header in view.html from:

<header data-role="header>
</header>

To this:

<div data-role="header>
</div>

Seems that something related to kendo layout..

Reply