mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2024-12-23 14:32:59 -05:00
Show Categories that use custom code to load (variables, procedures) (#483)
This commit is contained in:
parent
343b5bfe8e
commit
739c5deb63
1 changed files with 5 additions and 1 deletions
|
@ -38,7 +38,11 @@ var filterToolbox = function (toolbox, opcodes) {
|
||||||
) {
|
) {
|
||||||
if (category.nodeName.toLowerCase() !== 'category') continue;
|
if (category.nodeName.toLowerCase() !== 'category') continue;
|
||||||
var filteredCategory = filterToolboxNode(category, opcodes);
|
var filteredCategory = filterToolboxNode(category, opcodes);
|
||||||
if (filteredCategory.hasChildNodes()) filteredToolbox.appendChild(filteredCategory);
|
if (filteredCategory.hasChildNodes() ||
|
||||||
|
filteredCategory.hasAttribute('custom')
|
||||||
|
) {
|
||||||
|
filteredToolbox.appendChild(filteredCategory);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
filteredToolbox = filterToolboxNode(toolbox, opcodes);
|
filteredToolbox = filterToolboxNode(toolbox, opcodes);
|
||||||
|
|
Loading…
Reference in a new issue