Skip to content
This repository has been archived by the owner on Oct 8, 2021. It is now read-only.

Undefined 'type' cannot be dereferenced #2088

Closed
cybersam opened this issue Jul 15, 2011 · 3 comments
Closed

Undefined 'type' cannot be dereferenced #2088

cybersam opened this issue Jul 15, 2011 · 3 comments

Comments

@cybersam
Copy link

While running my jQM (1.0b1) PhoneGap (0.9.6) app, I get the following error:

Line 2961 : TypeError: Result of expression 'type' [undefined] is not an object.

It looks like the offending expression is:

type.length && type.toLowerCase() || "get"

I replace that with the following, and the error no longer displays:

type && type.length && type.toLowerCase() || "get"
@scottjehl
Copy link

Thanks! Looks like this was fixed already, yeah? https://github.com/jquery/jquery-mobile/blob/master/js/jquery.mobile.navigation.js#L1010

@cybersam
Copy link
Author

It looks like it. I guess it has not yet made it to a public release?

On Fri, Jul 15, 2011 at 1:33 PM, scottjehl <
reply@reply.github.com>wrote:

Thanks! Looks like this was fixed already, yeah?
https://github.com/jquery/jquery-mobile/blob/master/js/jquery.mobile.navigation.js#L1010

Reply to this email directly or view it on GitHub:
#2088 (comment)

///
(0-0) Sam

@toddparker
Copy link
Contributor

Yep, this was landed 2 days ago. It'll be in Beta 2.

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

3 participants