fix(prefs): ReactRemote should call componentWillUnmount

This commit is contained in:
Ben Gotow 2015-11-09 21:44:33 -08:00
parent d23b0fd16c
commit 0650768788

View file

@ -280,8 +280,10 @@ var openWindowForComponent = function(Component, options) {
break;
}
}
reactRemoteContainer.removeChild(container);
console.log("Cleaned up react remote window");
React.render(React.createElement('div'), container, function() {
reactRemoteContainer.removeChild(container);
});
container = null;
thinWindow = null;
};