提交 282e4598 编写于 作者: L Lebedev Konstantin

Merge pull request #595 from slavicd/master

Allow a custom setState handler on the using component
......@@ -120,7 +120,11 @@
}
newState[_getModelName(this)] = items;
this.setState(newState);
if (copyOptions["stateHandler"]) {
this[copyOptions["stateHandler"]](newState);
} else {
this.setState(newState);
}
(this !== _activeComponent) && _activeComponent.setState(remoteState);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册