Skip to content

Commit

Permalink
Merge pull request jquery-archive#4335 from jasondscott/hardcodedActi…
Browse files Browse the repository at this point in the history
…vePage

Fixes jquery-archive#4334 - removed hardcoded calls to ui-page-active
  • Loading branch information
gseguin committed May 11, 2012
2 parents 7d36632 + 4c89e0a commit b2dd113
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion js/jquery.mobile.forms.select.custom.js
Expand Up @@ -334,7 +334,7 @@ define( [
selfListParent = self.list.parent(),
menuHeight = selfListParent.outerHeight(),
menuWidth = selfListParent.outerWidth(),
activePage = $( ".ui-page-active" ),
activePage = $( "." + $.mobile.activePageClass ),
tScrollElem = activePage,
scrollTop = $window.scrollTop(),
btnOffset = self.button.offset().top,
Expand Down
2 changes: 1 addition & 1 deletion js/jquery.mobile.navigation.js
Expand Up @@ -397,7 +397,7 @@ define( [

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

0 comments on commit b2dd113

Please sign in to comment.