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

Function prepareForCommit

lib/assets/react-source/development/react.js:11156–11160  ·  view source on GitHub ↗
(containerInfo)

Source from the content-addressed store, hash-verified

11154 return instance;
11155 }
11156 function prepareForCommit(containerInfo) {
11157 eventsEnabled = isEnabled();
11158 selectionInformation = getSelectionInformation();
11159 setEnabled(false);
11160 }
11161 function resetAfterCommit(containerInfo) {
11162 restoreSelection(selectionInformation);
11163 setEnabled(eventsEnabled);

Callers 1

commitRootImplFunction · 0.85

Calls 3

isEnabledFunction · 0.85
getSelectionInformationFunction · 0.85
setEnabledFunction · 0.85

Tested by

no test coverage detected