Fix missing "TreeStyleTabUtils" symbol for modified functions

This commit is contained in:
YUKI Hiroshi 2013-01-08 21:22:02 +09:00
parent 8320caadea
commit 15a7581ab6

View File

@ -303,13 +303,14 @@ var TreeStyleTabBookmarksService = {
PlacesUIUtils[method].toSource().replace(
'{',
'{\n' +
' var TSTBS;\n' +
' var TSTBS, TSTUtils;\n' +
' let (w = "_getTopBrowserWin" in this ?\n' +
' this._getTopBrowserWin() :\n' +
' "_getCurrentActiveWin" in this ?\n' +
' this._getCurrentActiveWin() :\n' +
' window) {\n' +
' TSTBS = w.TreeStyleTabBookmarksService;\n' +
' TSTUtils = w.TreeStyleTabUtils;\n' +
' PlacesUtils = w.PlacesUtils;\n' +
' }'
).replace(
@ -318,7 +319,7 @@ var TreeStyleTabBookmarksService = {
).replace(
/(this\._openTabset\([^\)]+)(\))/,
'$1,\n' +
' TreeStyleTabUtils.treeBundle\n' +
' TSTUtils.treeBundle\n' +
' .getFormattedString(\n' +
' PlacesUtils.nodeIsBookmark(aNodes[0]) ?\n' +
' "openSelectedPlaces.bookmarks" :\n' +