MCPcopy Create free account
hub / github.com/reactjs/react-rails / hideInstance

Function hideInstance

lib/assets/react-source/development/react.js:11306–11318  ·  view source on GitHub ↗
(instance)

Source from the content-addressed store, hash-verified

11304 }
11305
11306 function hideInstance(instance) {
11307 // pass host context to this method?
11308
11309
11310 instance = instance;
11311 var style = instance.style;
11312
11313 if (typeof style.setProperty === 'function') {
11314 style.setProperty('display', 'none', 'important');
11315 } else {
11316 style.display = 'none';
11317 }
11318 }
11319 function hideTextInstance(textInstance) {
11320 textInstance.nodeValue = '';
11321 }

Callers 1

hideOrUnhideAllChildrenFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected