From 7c1ef2fb5f63c364503f1132527997356a93c268 Mon Sep 17 00:00:00 2001 From: Sebastien Jourdain Date: Tue, 30 Jan 2018 11:43:41 -0700 Subject: [PATCH] fix(ProxyManager): Add command execution --- Sources/Proxy/Core/ProxyManager/properties.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Sources/Proxy/Core/ProxyManager/properties.js b/Sources/Proxy/Core/ProxyManager/properties.js index b31baa0a243..07b2a9ccb8b 100644 --- a/Sources/Proxy/Core/ProxyManager/properties.js +++ b/Sources/Proxy/Core/ProxyManager/properties.js @@ -58,7 +58,14 @@ export default function addVPropertyHandlingAPI(publicAPI, model) { if (!groupBy[id]) { groupBy[id] = {}; } - groupBy[id][prop] = changeSet[key]; + if (changeSet[key] === '__command_execute__') { + const obj = publicAPI.getProxyById(id); + if (obj) { + obj[prop](); + } + } else { + groupBy[id][prop] = changeSet[key]; + } } // Apply changes