Software Archive
Read-only legacy content
17061 Discussions

Cannot redefine property: cordova

Márcio
Beginner
362 Views

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) ;

 

0 Kudos
1 Reply
Márcio
Beginner
362 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..

0 Kudos
Reply