File tree Expand file tree Collapse file tree 4 files changed +0
-31
lines changed Expand file tree Collapse file tree 4 files changed +0
-31
lines changed Original file line number Diff line number Diff line change @@ -27,16 +27,6 @@ var ReactComponentBrowserEnvironment = {
27
27
replaceNodeWithMarkup :
28
28
DOMChildrenOperations . dangerouslyReplaceNodeWithMarkup ,
29
29
30
- /**
31
- * If a particular environment requires that some resources be cleaned up,
32
- * specify this in the injected Mixin. In the DOM, we would likely want to
33
- * purge any cached node ID lookups.
34
- *
35
- * @private
36
- */
37
- unmountIDFromEnvironment : function ( rootNodeID ) {
38
- } ,
39
-
40
30
} ;
41
31
42
32
module . exports = ReactComponentBrowserEnvironment ;
Original file line number Diff line number Diff line change @@ -23,8 +23,6 @@ var EventConstants = require('EventConstants');
23
23
var EventPluginHub = require ( 'EventPluginHub' ) ;
24
24
var EventPluginRegistry = require ( 'EventPluginRegistry' ) ;
25
25
var ReactBrowserEventEmitter = require ( 'ReactBrowserEventEmitter' ) ;
26
- var ReactComponentBrowserEnvironment =
27
- require ( 'ReactComponentBrowserEnvironment' ) ;
28
26
var ReactDOMButton = require ( 'ReactDOMButton' ) ;
29
27
var ReactDOMComponentFlags = require ( 'ReactDOMComponentFlags' ) ;
30
28
var ReactDOMComponentTree = require ( 'ReactDOMComponentTree' ) ;
@@ -1212,7 +1210,6 @@ ReactDOMComponent.Mixin = {
1212
1210
this . unmountChildren ( safely ) ;
1213
1211
ReactDOMComponentTree . uncacheNode ( this ) ;
1214
1212
EventPluginHub . deleteAllListeners ( this ) ;
1215
- ReactComponentBrowserEnvironment . unmountIDFromEnvironment ( this . _rootNodeID ) ;
1216
1213
this . _rootNodeID = null ;
1217
1214
this . _domID = null ;
1218
1215
this . _wrapperState = null ;
Original file line number Diff line number Diff line change @@ -20,15 +20,6 @@ var ReactNativeComponentEnvironment = {
20
20
21
21
replaceNodeWithMarkup : ReactNativeDOMIDOperations . dangerouslyReplaceNodeWithMarkupByID ,
22
22
23
- /**
24
- * Nothing to do for UIKit bridge.
25
- *
26
- * @private
27
- */
28
- unmountIDFromEnvironment : function ( /*rootNodeID*/ ) {
29
-
30
- } ,
31
-
32
23
/**
33
24
* @param {DOMElement } Element to clear.
34
25
*/
Original file line number Diff line number Diff line change @@ -17,13 +17,6 @@ var injected = false;
17
17
18
18
var ReactComponentEnvironment = {
19
19
20
- /**
21
- * Optionally injectable environment dependent cleanup hook. (server vs.
22
- * browser etc). Example: A browser system caches DOM nodes based on component
23
- * ID and must remove that cache entry when this instance is unmounted.
24
- */
25
- unmountIDFromEnvironment : null ,
26
-
27
20
/**
28
21
* Optionally injectable hook for swapping out mount images in the middle of
29
22
* the tree.
@@ -42,8 +35,6 @@ var ReactComponentEnvironment = {
42
35
! injected ,
43
36
'ReactCompositeComponent: injectEnvironment() can only be called once.'
44
37
) ;
45
- ReactComponentEnvironment . unmountIDFromEnvironment =
46
- environment . unmountIDFromEnvironment ;
47
38
ReactComponentEnvironment . replaceNodeWithMarkup =
48
39
environment . replaceNodeWithMarkup ;
49
40
ReactComponentEnvironment . processChildrenUpdates =
You can’t perform that action at this time.
0 commit comments