ツリー単位でタブを閉じた時、その一度に閉じられたタブに共通のIDを付与するようにした

git-svn-id: http://www.cozmixng.org/repos/piro/treestyletab/trunk@5636 599a83e7-65a4-db11-8015-0010dcdd6dc2
This commit is contained in:
piro 2009-12-25 20:07:00 +00:00
parent 9584eaa0a7
commit 73479d6440

View File

@ -60,6 +60,7 @@ var TreeStyleTabUtils = {
kNEST : 'treestyletab-nest', kNEST : 'treestyletab-nest',
kINSERT_BEFORE : 'treestyletab-insert-before', kINSERT_BEFORE : 'treestyletab-insert-before',
kINSERT_AFTER : 'treestyletab-insert-after', kINSERT_AFTER : 'treestyletab-insert-after',
kCLOSED_SET_ID : 'treestyletab-closed-set-id',
kID_RESTORING : 'treestyletab-id-restoring', kID_RESTORING : 'treestyletab-id-restoring',
kCHILDREN_RESTORING : 'treestyletab-children-restoring', kCHILDREN_RESTORING : 'treestyletab-children-restoring',
@ -438,6 +439,11 @@ var TreeStyleTabUtils = {
return 'tab-<'+Date.now()+'-'+parseInt(Math.random() * 65000)+'>'; return 'tab-<'+Date.now()+'-'+parseInt(Math.random() * 65000)+'>';
}, },
makeNewClosedSetId : function TSTUtils_makeNewId()
{
return 'tabs-closed-set-<'+Date.now()+'-'+parseInt(Math.random() * 65000)+'>';
},
makeURIFromSpec : function TSTUtils_makeURIFromSpec(aURI) makeURIFromSpec : function TSTUtils_makeURIFromSpec(aURI)
{ {
var newURI; var newURI;
@ -641,7 +647,7 @@ var TreeStyleTabUtils = {
return aA._tPos - aB._tPos; return aA._tPos - aB._tPos;
}, },
normalizeToTabs : function TSTUtils_normalizeToTabs(aTabOrTabs, aOnlyChildren) gatherSubtreeMemberTabs : function TSTUtils_gatherSubtreeMemberTabs(aTabOrTabs, aOnlyChildren)
{ {
var tabs = aTabOrTabs; var tabs = aTabOrTabs;
if (!(tabs instanceof Array)) { if (!(tabs instanceof Array)) {