Skip to content

Commit

Permalink
Fix save state generation on dynamic created objects. (#3537)
Browse files Browse the repository at this point in the history
* fix statefull on new group
  • Loading branch information
asturur committed Dec 17, 2016
1 parent c0a85d2 commit ad0ce7a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/mixins/stateful.mixin.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,9 @@
saveState: function(options) {
var propertySet = options && options.propertySet || originalSet,
destination = '_' + propertySet;
if (!this[destination]) {
return this.setupState(options);
}
saveProps(this, destination, this[propertySet]);
if (options && options.stateProperties) {
saveProps(this, destination, options.stateProperties);
Expand Down

0 comments on commit ad0ce7a

Please sign in to comment.