1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-11-08 21:42:24 +03:00

Refer rest parameters

This commit is contained in:
Richard Lewis
2018-01-18 12:03:24 +00:00
parent 1293c53c4b
commit 917d85d603

View File

@@ -51,11 +51,11 @@ module.exports = {
createMenu: function(Element, props) { createMenu: function(Element, props) {
const self = this; const self = this;
const closeMenu = function() { const closeMenu = function(...args) {
ReactDOM.unmountComponentAtNode(self.getOrCreateContainer()); ReactDOM.unmountComponentAtNode(self.getOrCreateContainer());
if (props && props.onFinished) { if (props && props.onFinished) {
props.onFinished.apply(null, arguments); props.onFinished.apply(null, args);
} }
}; };