[Pkg-mozext-commits] [tabmixplus] 48/73: Remove redundant character escape from regular expression to find function end
David Prévot
taffit at moszumanska.debian.org
Mon May 9 02:30:55 UTC 2016
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository tabmixplus.
commit 63d9ed95b8c062921e6fc4eebbf48f8aeb48a595
Author: onemen <tabmix.onemen at gmail.com>
Date: Sat Apr 23 14:36:13 2016 +0300
Remove redundant character escape from regular expression to find function end
---
chrome/content/extensions/extensions.js | 10 +++++-----
chrome/content/minit/minit.js | 2 +-
chrome/content/minit/tablib.js | 14 +++++++-------
chrome/content/places/places.js | 4 ++--
chrome/content/tab/scrollbox.xml | 2 +-
modules/extensions/TabGroupsManager.jsm | 2 +-
6 files changed, 17 insertions(+), 17 deletions(-)
diff --git a/chrome/content/extensions/extensions.js b/chrome/content/extensions/extensions.js
index 8497dc1..bc2d862 100644
--- a/chrome/content/extensions/extensions.js
+++ b/chrome/content/extensions/extensions.js
@@ -233,7 +233,7 @@ var TMP_extensionsCompatibility = {
if ("PersonaController" in window && typeof (window.PersonaController) == "object") {
Tabmix.changeCode(PersonaController, "PersonaController._applyPersona")._replace(
- /(\})(\)?)$/,
+ /(})(\)?)$/,
'if (TabmixTabbar.position == 1) {\
gBrowser.tabContainer.style.backgroundImage = this._footer.style.backgroundImage; \
gBrowser.tabContainer.setAttribute("persona", persona.id); \
@@ -242,7 +242,7 @@ var TMP_extensionsCompatibility = {
).toCode();
Tabmix.changeCode(PersonaController, "PersonaController._applyDefault")._replace(
- /(\})(\)?)$/,
+ /(})(\)?)$/,
'if (TabmixTabbar.position == 1) {\
gBrowser.tabContainer.style.backgroundImage = ""; \
gBrowser.tabContainer.removeAttribute("persona"); \
@@ -275,7 +275,7 @@ var TMP_extensionsCompatibility = {
// trigger tabmix function when user change tab width with faviconize extension
if ("faviconize" in window && "toggle" in faviconize) {
Tabmix.changeCode(faviconize, "faviconize.toggle")._replace(
- /(\})(\)?)$/,
+ /(})(\)?)$/,
' tab.removeAttribute("minwidth");' +
' tab.removeAttribute("maxwidth");' +
' TabmixTabbar.updateScrollStatus();' +
@@ -744,7 +744,7 @@ TMP_extensionsCompatibility.treeStyleTab = {
' TreeStyleTabService.readyToOpenChildTab(tabToSelect, true, gBrowser.treeStyleTab.getNextSiblingTab(tabToSelect));' +
' }'
)._replace(
- /(\})(\)?)$/,
+ /(})(\)?)$/,
' if (TSTOpenGroupBookmarkBehavior & TreeStyleTabService.kGROUP_BOOKMARK_SUBTREE)' +
' TreeStyleTabService.stopToOpenChildTab(tabToSelect);' +
'$1$2'
@@ -762,7 +762,7 @@ TMP_extensionsCompatibility.treeStyleTab = {
).toCode();
// Added 2010-04-10
Tabmix.changeCode(TMP_eventListener, "TMP_eventListener.onTabOpen")._replace(
- /(\})(\)?)$/,
+ /(})(\)?)$/,
'gBrowser.treeStyleTab.initTabAttributes(tab); \
Tabmix.TST_initTabContentsOrder(tab); \
$1$2'
diff --git a/chrome/content/minit/minit.js b/chrome/content/minit/minit.js
index 420052d..a3faa90 100644
--- a/chrome/content/minit/minit.js
+++ b/chrome/content/minit/minit.js
@@ -61,7 +61,7 @@ var TMP_tabDNDObserver = {
).toCode();
Tabmix.changeCode(tabBar, "gBrowser.tabContainer._finishAnimateTabMove")._replace(
- /(\})(\)?)$/,
+ /(})(\)?)$/,
'\n\
this.removeAttribute("movingBackgroundTab");\n\
let tabs = this.getElementsByAttribute("dragged", "*");\n\
diff --git a/chrome/content/minit/tablib.js b/chrome/content/minit/tablib.js
index 8dfea21..63d7683 100644
--- a/chrome/content/minit/tablib.js
+++ b/chrome/content/minit/tablib.js
@@ -41,7 +41,7 @@ var tablib = { // eslint-disable-line
' if (tabmixResult)\n' +
' return tabmixResult;\n'
)._replace(
- /(\})(\)?)$/,
+ /(})(\)?)$/,
' return null;\n' +
'$1$2'
)._replace(
@@ -300,7 +300,7 @@ var tablib = { // eslint-disable-line
'{',
'{try {'
)._replace(
- /(\})(\)?)$/,
+ /(})(\)?)$/,
'} catch (ex) {} \
$1$2'
).toCode();
@@ -414,7 +414,7 @@ var tablib = { // eslint-disable-line
' }' +
' else $&'
)._replace(
- /(\})(\)?)$/,
+ /(})(\)?)$/,
'if (TabmixTabbar.scrollButtonsMode != TabmixTabbar.SCROLL_BUTTONS_MULTIROW) {' +
' TMP_tabDNDObserver.paddingLeft = parseInt(this.style.MozPaddingStart || 0);' +
'}' +
@@ -423,7 +423,7 @@ var tablib = { // eslint-disable-line
}
Tabmix.changeCode(tabBar, "gBrowser.tabContainer._handleNewTab")._replace(
- /(\})(\)?)$/,
+ /(})(\)?)$/,
'TMP_eventListener.onTabOpen_delayUpdateTabBar(tab); \
$1$2'
).toCode();
@@ -484,7 +484,7 @@ var tablib = { // eslint-disable-line
' var updateScrollStatus = this.hasAttribute("using-closing-tabs-spacer") ||\n' +
' this._hasTabTempMaxWidth || this._hasTabTempWidth;'
)._replace(
- /(\})(\)?)$/,
+ /(})(\)?)$/,
' if (this._hasTabTempWidth) {' +
' this._hasTabTempWidth = false;' +
' let tabs = this.tabbrowser.visibleTabs;' +
@@ -519,7 +519,7 @@ var tablib = { // eslint-disable-line
).defineProperty();
Tabmix.changeCode(tabBar, "gBrowser.tabContainer._setPositionalAttributes")._replace(
- /(\})(\)?)$/,
+ /(})(\)?)$/,
' Tabmix.setTabStyle(this.selectedItem);\n' +
' TabmixTabbar.updateBeforeAndAfter();\n' +
'$1$2'
@@ -854,7 +854,7 @@ var tablib = { // eslint-disable-line
'this._rootElt ? this._rootElt.getElementsByClassName("recentlyClosedWindowsMenu")[0] :\n' +
' document.getElementById(arguments[0]);'
)._replace(
- /(\})(\)?)$/,
+ /(})(\)?)$/,
' tablib.populateUndoWindowSubmenu(undoPopup);\n' +
'$1$2'
).toCode();
diff --git a/chrome/content/places/places.js b/chrome/content/places/places.js
index e2a4811..b040437 100644
--- a/chrome/content/places/places.js
+++ b/chrome/content/places/places.js
@@ -654,7 +654,7 @@ Tabmix.onContentLoaded = {
'fullTabsHeight = fullTabsHeight / TabmixTabbar.visibleRows;\n $&',
{check: TabmixSvc.isMac && Tabmix.isVersion(280)}
)._replace(
- /(\})(\)?)$/,
+ /(})(\)?)$/,
// when we get in and out of tabsintitlebar mode call updateScrollStatus
' if (TabmixTabbar._enablePositionCheck &&\n ' +
' TabmixTabbar.getTabsPosition() != TabmixTabbar._tabsPosition) {\n ' +
@@ -750,7 +750,7 @@ Tabmix.onContentLoaded = {
' newWin.bookMarkIds = bookMarkId;\n' +
' }'
)._replace(
- /(\})(\)?)$/,
+ /(})(\)?)$/,
' var tab = where == "current" ?\n' +
' w.gBrowser.selectedTab : w.gBrowser.getTabForLastPanel();\n' +
' w.TMP_Places.setTabTitle(tab, url, bookMarkId);\n' +
diff --git a/chrome/content/tab/scrollbox.xml b/chrome/content/tab/scrollbox.xml
index 63e4b08..4691a10 100644
--- a/chrome/content/tab/scrollbox.xml
+++ b/chrome/content/tab/scrollbox.xml
@@ -219,7 +219,7 @@
'this.scrollSize',
'(this.orient == "vertical" && this.isMultiRow ? this.innerbox.getBoundingClientRect().height : $&)'
)._replace(
- /(\})(\)?)$/,
+ /(})(\)?)$/,
' var box = document.getElementById("tabmixScrollBox");\n' +
' Tabmix.setItem(box, "scrolledtoend", scrolledToEnd || null);\n' +
' Tabmix.setItem(box, "scrolledtostart", scrolledToStart || null);\n' +
diff --git a/modules/extensions/TabGroupsManager.jsm b/modules/extensions/TabGroupsManager.jsm
index a627b3c..45a44a1 100644
--- a/modules/extensions/TabGroupsManager.jsm
+++ b/modules/extensions/TabGroupsManager.jsm
@@ -8,7 +8,7 @@ this.EXPORTED_SYMBOLS = ["TMP_TabGroupsManager"];
this.TMP_TabGroupsManager = {
init: function TMP_TGM_init(aWindow) {
this.changeCode(aWindow.TMP_eventListener, "TMP_eventListener.onTabOpen")._replace(
- /(\})(\)?)$/,
+ /(})(\)?)$/,
' try {\n' +
' if (TabGroupsManager.apiEnabled)\n' +
' TabGroupsManager.eventListener.onTabOpen(aEvent);\n' +
--
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