PropTypes and refactoring
This commit is contained in:
@@ -9,7 +9,7 @@ export default class IPCContainer extends Component {
|
||||
componentWillUnmount() {
|
||||
if (ipcRenderer) {
|
||||
for (let name in this.handlerList) {
|
||||
if (this.handlerList.hasOwnProperty(name)) {
|
||||
if (Object.prototype.hasOwnProperty.call(this.handlerList, name)) {
|
||||
ipcRenderer.removeListener(name, this.handlerList[name]);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user