[Pkg-mozext-commits] [tabmixplus] 97/107: Incompatibility problem with Stay-Open Menu, Undo closed tab from undo closed button list always open last closed tab. when the menu is closed before we do our restoreCommand aEvent.originalTarget.value is null

David Prévot taffit at moszumanska.debian.org
Tue Dec 29 19:02:55 UTC 2015


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository tabmixplus.

commit e6e93d93018e43e63ddc3b4bc565bf9c1c011130
Author: onemen <tabmix.onemen at gmail.com>
Date:   Thu Dec 17 21:04:53 2015 +0200

    Incompatibility problem with Stay-Open Menu, Undo closed tab from undo closed button list always open last closed tab. when the menu is closed before we do our restoreCommand aEvent.originalTarget.value is null
---
 chrome/content/session/sessionStore.js | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/chrome/content/session/sessionStore.js b/chrome/content/session/sessionStore.js
index a826f4a..f9343ba 100644
--- a/chrome/content/session/sessionStore.js
+++ b/chrome/content/session/sessionStore.js
@@ -438,7 +438,7 @@ var TMP_ClosedTabs = { // jshint ignore:line
   },
 
   restoreCommand: function(aEvent) {
-    var index = aEvent.originalTarget.value;
+    let index = aEvent.originalTarget.getAttribute("value");
     if (index < 0) {
       return;
     }
@@ -449,7 +449,7 @@ var TMP_ClosedTabs = { // jshint ignore:line
     if (aEvent.button != 1)
       return;
 
-    var index = aEvent.originalTarget.value;
+    let index = aEvent.originalTarget.getAttribute("value");
     if (index < 0)
       return;
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/tabmixplus.git



More information about the Pkg-mozext-commits mailing list