mirror of
https://github.com/Hopiu/jquery-mobile.git
synced 2026-03-16 22:10:25 +00:00
Bugfix: ":jqmData(ajax='false')" might also match forms, which have neither of "src" or "href". In that case, thisUrl is undefined, and the following replace results in an error.
This commit is contained in:
parent
daffc98bf8
commit
d99d096ab7
1 changed files with 2 additions and 1 deletions
|
|
@ -495,7 +495,8 @@
|
|||
if( !$.support.dynamicBaseTag ) {
|
||||
var newPath = path.get( fileUrl );
|
||||
page.find( "[src], link[href], a[rel='external'], :jqmData(ajax='false'), a[target]" ).each(function() {
|
||||
var thisAttr = $( this ).is( '[href]' ) ? 'href' : 'src',
|
||||
var thisAttr = $( this ).is( '[href]' ) ? 'href' :
|
||||
$(this).is('[src]') ? 'src' : 'action',
|
||||
thisUrl = $( this ).attr( thisAttr );
|
||||
|
||||
// XXX_jblas: We need to fix this so that it removes the document
|
||||
|
|
|
|||
Loading…
Reference in a new issue