MCPcopy Create free account
hub / github.com/microsoft/SandDance / hideInstance

Function hideInstance

docs/external/js/react-dom.development.js:7734–7746  ·  view source on GitHub ↗
(instance)

Source from the content-addressed store, hash-verified

7732 }
7733
7734 function hideInstance(instance) {
7735 // pass host context to this method?
7736
7737
7738 instance = instance;
7739 var style = instance.style;
7740
7741 if (typeof style.setProperty === 'function') {
7742 style.setProperty('display', 'none', 'important');
7743 } else {
7744 style.display = 'none';
7745 }
7746 }
7747 function hideTextInstance(textInstance) {
7748 textInstance.nodeValue = '';
7749 }

Callers 1

hideOrUnhideAllChildrenFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected