loadPage Cannot read property 'prefetch' of undefined #5877

Closed
evilripper opened this Issue Apr 11, 2013 · 5 comments

Comments

Projects
None yet
5 participants
@evilripper

I have some problem with the prefetch option: in my code I load some page created dynamically but now in firefox I get this error
TypeError: options is undefined
in chrome the same
TypeError: Cannot read property 'prefetch' of undefined
if i set the option on loadPage("#shajshs", true) it works! O_o
example code:
http://jsfiddle.net/evilripper/d5eK6/1/

I posted about this on this commit c8a8046
however I'm not sure it is caused by this fix! :)

@vladimirGI

This comment has been minimized.

Show comment
Hide comment
@vladimirGI

vladimirGI Apr 11, 2013

i guess you load the page by calling $.mobile.loadPage(pageUrl);
while the issue should be fixed in JMQ here is the workaround:
$.mobile.loadPage(pageUrl, {prefetch:"true"});

i guess you load the page by calling $.mobile.loadPage(pageUrl);
while the issue should be fixed in JMQ here is the workaround:
$.mobile.loadPage(pageUrl, {prefetch:"true"});

@evilripper

This comment has been minimized.

Show comment
Hide comment
@evilripper

evilripper Apr 11, 2013

yes by loadPage, my page is already in the dom(it contains some custom widget and i must preload the data calling the loadpage [it is a stupid project on phonegap]), i must set prefetch to true in the options... thanks! :)

yes by loadPage, my page is already in the dom(it contains some custom widget and i must preload the data calling the loadpage [it is a stupid project on phonegap]), i must set prefetch to true in the options... thanks! :)

@jaspermdegroot

This comment has been minimized.

Show comment
Hide comment
@jaspermdegroot

jaspermdegroot May 1, 2013

Member

This is probably a regression from commit be22887.

Member

jaspermdegroot commented May 1, 2013

This is probably a regression from commit be22887.

@arschmitz arschmitz closed this in 9648130 May 1, 2013

@jaspermdegroot

This comment has been minimized.

Show comment
Hide comment
@jaspermdegroot

jaspermdegroot May 2, 2013

Member

Re-opening because the fix isn't in 1.3-stable yet.

Member

jaspermdegroot commented May 2, 2013

Re-opening because the fix isn't in 1.3-stable yet.

@jaspermdegroot jaspermdegroot reopened this May 2, 2013

arschmitz added a commit that referenced this issue May 6, 2013

Prefetch: Check for existance of options object before checking prefe…
…tch property Fixes #5877 - loadPage Cannot read property 'prefetch' of undefined and addresses execption from #5951

Conflicts:
	js/jquery.mobile.navigation.js
@shavo0915

This comment has been minimized.

Show comment
Hide comment
@shavo0915

shavo0915 Oct 23, 2013

I am getting this same issue in 1.3.2. The work around works but it doesn't load any of the icons for buttons etc. so it breaks that.

I am getting this same issue in 1.3.2. The work around works but it doesn't load any of the icons for buttons etc. so it breaks that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment