[Pkg-mozext-commits] [tabmixplus] 11/123: Update for debug mode

David Prévot taffit at moszumanska.debian.org
Wed Sep 17 21:16:22 UTC 2014


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

taffit pushed a commit to branch master
in repository tabmixplus.

commit 2d1f030b74ac3e6334486d21e6fa3611e607cb33
Author: onemen <tabmix.onemen at gmail.com>
Date:   Sun Aug 10 10:14:44 2014 +0300

    Update for debug mode
---
 chrome/content/changecode.js | 4 +++-
 chrome/content/tabmix.js     | 4 ++++
 2 files changed, 7 insertions(+), 1 deletion(-)

diff --git a/chrome/content/changecode.js b/chrome/content/changecode.js
index afbc694..b124884 100644
--- a/chrome/content/changecode.js
+++ b/chrome/content/changecode.js
@@ -7,7 +7,7 @@ Tabmix._eval = function(name, code) name ? eval(name + " = " + code) : eval("("
 // aOptions can be: getter, setter or forceUpdate
 Tabmix.changeCode = function(aParent, aName, aOptions) {
   let console = TabmixSvc.console;
-  let debugMode = Tabmix._debugMode;
+  let debugMode = this._debugMode;
 
   function ChangeCode(aParams) {
     this.obj = aParams.obj;
@@ -63,6 +63,8 @@ Tabmix.changeCode = function(aParent, aName, aOptions) {
       try {
         // list of function that we don't warp with try-catch
         let dontDebug = ["gBrowser.tabContainer._animateTabMove"];
+        if (TabmixSvc.version(310))
+          dontDebug.push("gURLBar.handleCommand");
         if (debugMode && dontDebug.indexOf(this.fullName) == -1) {
           let excludeReturn = ["TabsInTitlebar._update", "gBrowser._blurTab"];
           let addReturn = "", re = new RegExp("//.*", "g");
diff --git a/chrome/content/tabmix.js b/chrome/content/tabmix.js
index 77560a8..8cabeb3 100644
--- a/chrome/content/tabmix.js
+++ b/chrome/content/tabmix.js
@@ -337,6 +337,10 @@ var TMP_eventListener = {
         'function rect(ele)',
         'let rect = function _rect(ele)' // for strict mode
       )._replace(
+        'function verticalMargins(',
+        'let verticalMargins = $&',
+        {check: Tabmix._debugMode && Tabmix.isVersion(280)}
+      )._replace(
         /(\})(\)?)$/,
         // when we get in and out of tabsintitlebar mode call updateScrollStatus
         'if (TabmixTabbar._enablePositionCheck && TabmixTabbar.getTabsPosition() != TabmixTabbar._tabsPosition)\

-- 
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