mirror of
https://github.com/Hopiu/jquery-mobile.git
synced 2026-05-14 09:33:09 +00:00
quick update to set the base.href back to the starting path, just in case, as some browsers may retain the base href after the element is removed from the DOM. Explained better here: b2add677f0
This commit is contained in:
parent
7e0cdbef5e
commit
9420083a7b
1 changed files with 4 additions and 3 deletions
|
|
@ -1,8 +1,8 @@
|
|||
/*
|
||||
* jQuery Mobile Framework : support tests
|
||||
* Copyright (c) jQuery Project
|
||||
* Dual licensed under the MIT or GPL Version 2 licenses.
|
||||
* http://jquery.org/license
|
||||
* Dual licensed under the MIT (MIT-LICENSE.txt) and GPL (GPL-LICENSE.txt) licenses.
|
||||
* Note: Code is in draft form and is subject to change
|
||||
*/
|
||||
(function($, undefined ) {
|
||||
|
||||
|
|
@ -19,7 +19,7 @@ function propExists( prop ){
|
|||
var uc_prop = prop.charAt(0).toUpperCase() + prop.substr(1),
|
||||
props = (prop + ' ' + vendors.join(uc_prop + ' ') + uc_prop).split(' ');
|
||||
for(var v in props){
|
||||
if( fbCSS[ props[v] ] !== undefined ){
|
||||
if( fbCSS[ v ] !== undefined ){
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
|
@ -31,6 +31,7 @@ function baseTagTest(){
|
|||
base = $("<base>", {"href": fauxBase}).appendTo("head"),
|
||||
link = $( "<a href='testurl'></a>" ).prependTo( fakeBody ),
|
||||
rebase = link[0].href;
|
||||
base[0].href = location.pathname;
|
||||
base.remove();
|
||||
return rebase.indexOf(fauxBase) === 0;
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in a new issue