Skip to content

Commit 4c89e0a

Browse files
author
Jason Scott
committed
Fixes jquery-archive#4334 - removed hardcoded calls to ui-page-active
1 parent 7d36632 commit 4c89e0a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

js/jquery.mobile.forms.select.custom.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,7 @@ define( [
334334
selfListParent = self.list.parent(),
335335
menuHeight = selfListParent.outerHeight(),
336336
menuWidth = selfListParent.outerWidth(),
337-
activePage = $( ".ui-page-active" ),
337+
activePage = $( "." + $.mobile.activePageClass ),
338338
tScrollElem = activePage,
339339
scrollTop = $window.scrollTop(),
340340
btnOffset = self.button.offset().top,

js/jquery.mobile.navigation.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,7 @@ define( [
397397

398398
//remove active classes after page transition or error
399399
function removeActiveLinkClass( forceRemoval ) {
400-
if( !!$activeClickedLink && ( !$activeClickedLink.closest( '.ui-page-active' ).length || forceRemoval ) ) {
400+
if( !!$activeClickedLink && ( !$activeClickedLink.closest( "." + $.mobile.activePageClass ).length || forceRemoval ) ) {
401401
$activeClickedLink.removeClass( $.mobile.activeBtnClass );
402402
}
403403
$activeClickedLink = null;

0 commit comments

Comments
 (0)