replace spread with destructuring

This commit is contained in:
siikamiika 2020-03-07 04:11:18 +02:00
parent 86be737508
commit 9fef0751f3

View File

@ -116,8 +116,8 @@ class PopupProxyHost {
async _onApiContainsPoint({id, x, y}) {
const popup = this._getPopup(id);
const rootPagePoint = PopupProxyHost._convertPopupPointToRootPagePoint(popup, x, y);
return await popup.containsPoint(...rootPagePoint);
[x, y] = PopupProxyHost._convertPopupPointToRootPagePoint(popup, x, y);
return await popup.containsPoint(x, y);
}
async _onApiShowContent({id, elementRect, writingMode, type, details}) {