jquery-archive / jquery-mobile

jQuery Mobile Framework
https://jquerymobile.com
Other
9.7k stars 2.41k forks source link

Undefined 'type' cannot be dereferenced #2088

Closed cybersam closed 12 years ago

cybersam commented 12 years ago

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 commented 12 years ago

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

cybersam commented 12 years ago

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: https://github.com/jquery/jquery-mobile/issues/2088#issuecomment-1582580

/// (0-0) Sam

toddparker commented 12 years ago

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