Skip to content
This repository has been archived by the owner on Oct 8, 2021. It is now read-only.

Commit

Permalink
Merge pull request #2120 from jgable/fix_2119
Browse files Browse the repository at this point in the history
Fixes #2119. updated $elem to $this
  • Loading branch information
Scott Jehl committed Jul 20, 2011
2 parents 3afef99 + 9ff4d4c commit 0cbea0b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/jquery.mobile.page.sections.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ $( ":jqmData(role='page'), :jqmData(role='dialog')" ).live( "pagecreate", functi
// Auto-add back btn on pages beyond first view
if ( o.addBackBtn && role === "header" &&
$( ".ui-page" ).length > 1 &&
$elem.jqmData( "url" ) !== $.mobile.path.stripHash( location.hash ) &&
$this.jqmData( "url" ) !== $.mobile.path.stripHash( location.hash ) &&
!leftbtn ) {

backBtn = $( "<a href='#' class='ui-btn-left' data-"+ $.mobile.ns +"rel='back' data-"+ $.mobile.ns +"icon='arrow-l'>"+ o.backBtnText +"</a>" ).prependTo( $this );
Expand Down

0 comments on commit 0cbea0b

Please sign in to comment.