Skip to content

Commit

Permalink
fix(ProxyManager): Add command execution
Browse files Browse the repository at this point in the history
  • Loading branch information
jourdain committed Jan 30, 2018
1 parent ba56a5f commit 7c1ef2f
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion Sources/Proxy/Core/ProxyManager/properties.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7c1ef2f

Please sign in to comment.