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

Commit

Permalink
Merge pull request #26228 from begeeben/1059650_back_button_stops
Browse files Browse the repository at this point in the history
Bug 1059650 - [Browser]Back button stops working after clicking '+' icon multiple times, r=Dale Harvey
  • Loading branch information
begeeben committed Nov 24, 2014
2 parents 124c2f8 + e5b514a commit a376c95
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion apps/browser/js/browser.js
Expand Up @@ -1620,10 +1620,16 @@ var Browser = {
this.tab.style.left = e.detail.absolute.dx + 'px';
},

tap: function tabSwipe_tap() {
tap: function tabSwipe_tap(e) {
if (this.browser.inTransition) {
return;
}

this.isCloseButton = e.target.nodeName === 'BUTTON';
this.tab = this.isCloseButton ? e.target.parentNode : e.target;
this.id = this.tab.getAttribute('data-id');
this.containerWidth = this.tab.parentNode.clientWidth;

if (this.isCloseButton) {
this.tab.style.left = '0px';
this.deleteTab(100, this.containerWidth);
Expand Down

0 comments on commit a376c95

Please sign in to comment.