Skip to content
This repository has been archived by the owner on Apr 16, 2019. It is now read-only.

Commit

Permalink
code review
Browse files Browse the repository at this point in the history
  • Loading branch information
ArcRain committed Nov 4, 2015
1 parent 4a92b51 commit 4294aea
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/af.ui.js
Expand Up @@ -860,10 +860,11 @@
//Add the back button if it's not there
if(hdr.find(".backButton").length===1) return;
hdr.prepend("<a class='backButton back'>" + this.backButtonText + "</a>");
//Fix device click no response issue
//Fix device click no response issue, just register an event and do nothing
hdr.on("click", ".backButton", function() {
if(this.useInternalRouting)
this.goBack(this);
/**Do nothing, event will be called later in
* $(document).on("click", ".backButton, [data-back]", function(){...});
*/
});
}
else {
Expand Down

0 comments on commit 4294aea

Please sign in to comment.