You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi I'm trying to model a (multiply) nested object using children
I get a stack overflow with :
var M = State.extend({
children: {
inner: function(x) {
// x
if( !isEmpty(x) ) {
return new M()
}
return new End() // end
}
}
});
var m = new M({ inner: { stuff: true } });
Any ideas how to do this ?
The text was updated successfully, but these errors were encountered:
weepy
added a commit
to weepy/ampersand-state
that referenced
this issue
Jul 16, 2015
This simply sends the attrs to _initChildren, so that derived models can override _initChildren and reason about the passed in attrs. See AmpersandJS#181.
I'm not sure whether you checked, but inner function will get empty object here, as children object expect key: value pair, where value is a state/model constructor.
Hi I'm trying to model a (multiply) nested object using
children
I get a stack overflow with :
Any ideas how to do this ?
The text was updated successfully, but these errors were encountered: