Skip to content

Commit 39f852a

Browse files
committed
Fix typo
1 parent c6479d3 commit 39f852a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ module.exports = class extends React.Component {
4444
}
4545

4646
const eventName = lcfirst(key.substr(2)); // e.g. onUpdate -> update
47-
this.tree.off(eventName, this.eventHandlers[key]);
47+
this.tree.removeListener(eventName, this.eventHandlers[key]);
4848
this.eventHandlers[key] = null;
4949
});
5050

0 commit comments

Comments
 (0)