[Pkg-mozext-commits] [tabmixplus] 28/44: Use Tabmix.setNewFunction to declare the modified URLBarSetURI

David Prévot taffit at moszumanska.debian.org
Wed Oct 15 02:10:03 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 a739b57e2d9556907bc12b05c8e5aa906e64e730
Author: onemen <tabmix.onemen at gmail.com>
Date:   Mon Oct 13 20:10:24 2014 +0300

    Use Tabmix.setNewFunction to declare the modified URLBarSetURI
---
 chrome/content/minit/tablib.js | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/chrome/content/minit/tablib.js b/chrome/content/minit/tablib.js
index 6ac946f..35b40c7 100644
--- a/chrome/content/minit/tablib.js
+++ b/chrome/content/minit/tablib.js
@@ -733,13 +733,14 @@ var tablib = {
     }
 
     Tabmix.originalFunctions.URLBarSetURI = URLBarSetURI;
-    URLBarSetURI = function tabmix_URLBarSetURI(aURI) {
+    let _URLBarSetURI = function tabmix_URLBarSetURI(aURI) {
       if (Tabmix.selectedTab == gBrowser.selectedTab &&
           Tabmix.userTypedValue && gBrowser.userTypedValue != "") {
         gBrowser.userTypedValue = "";
       }
       Tabmix.originalFunctions.URLBarSetURI.apply(window, arguments);
     }
+    Tabmix.setNewFunction(window, "URLBarSetURI", _URLBarSetURI);
   },
 
   populateUndoWindowSubmenu: function(undoPopup) {

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