Skip to content

Commit

Permalink
Follow to changes introduced by the bug 971630 (fix #685)
Browse files Browse the repository at this point in the history
  • Loading branch information
piroor committed Apr 17, 2014
1 parent a92de60 commit 8db6b00
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions content/treestyletab/windowHelper.js
Expand Up @@ -512,6 +512,17 @@ var TreeStyleTabWindowHelper = {
/\.left/g, '[treeStyleTab.startProp]'
).replace(
/\.right/g, '[treeStyleTab.endProp]'

// replace such codes:
// tab = {left: tab.left, right: tab.right};
).replace(
/left\s*:/g, 'start:'
).replace(
/right\s*:/g, 'end:'
).replace(
/((tab|selected)\s*=\s*\{\s*start:[^\}]+\})/g,
'$1; $2[treeStyleTab.startProp] = $2.start; $2[treeStyleTab.endProp] = $2.end;'

).replace(
'!selected ||',
'$& treeStyleTab.scrollToNewTabMode == 1 && '
Expand Down

0 comments on commit 8db6b00

Please sign in to comment.