Skip to content
This repository has been archived by the owner on Apr 16, 2019. It is now read-only.

Error with cordova - document.removeEventListener #662

Closed
madfart opened this issue Apr 23, 2014 · 6 comments
Closed

Error with cordova - document.removeEventListener #662

madfart opened this issue Apr 23, 2014 · 6 comments

Comments

@madfart
Copy link

madfart commented Apr 23, 2014

When using the latest version in github for the appframework.ui.js (2014/04/18) i get the following errors:

Uncaught TypeError: Object function (){
$.ui.isIntel=true;
setTimeout(function() {
document.getElementById("afui").style.height = "100%";
document.body.style.height = "100%";
document.documentElement.style.minHeight = window.innerHeight;
}, 30);
document.removeEventListener(xdkDeviceReady);
} has no method 'toLowerCase' cordova.js:157

Uncaught TypeError: Object function (){
that.launch();
document.removeEventListener(xdkLaunch);
} has no method 'toLowerCase'

This only happens when i'm also including cordova.js, otherwise it works fine.

@madfart madfart changed the title Error with cordova Error with cordova - document.removeEventListener Apr 23, 2014
@imaffett
Copy link
Contributor

cordova shouldn't be causing those events, so I have no idea. Which version of cordova? iOS/Android

@madfart
Copy link
Author

madfart commented Apr 23, 2014

the version of cordova i'm using is the one the xdk uses, 2.9.0 if i'm not mistaken. This error occurred in the emulator, testing in iOS (iPad more precisely).

@imaffett
Copy link
Contributor

I can't replicate this with the kitchen sink app...it runs fine. Can you put a demo up somewhere that I can use then to debug it?

@madfart
Copy link
Author

madfart commented Apr 23, 2014

Sure, give an e-mail to share the folder. i'm using the most recent version of xdk, the one that was released a couple of days ago.

@imaffett
Copy link
Contributor

ian.maffett@gmail.com

@madfart
Copy link
Author

madfart commented Apr 23, 2014

Already sent it, it is as simple as it gets, and the errors should appear in the console in xdk, when emulating in iOS

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants