FooBarWidget/default_value_for

Mass-assignment in initializer: default values are not preset

der-flo opened this issue · 4 comments

See my small code sample:

<script src="http://gist.github.com/563547.js"> </script>

http://gist.github.com/563547

store is not filled with the default value when entry_1 is assigned. I think the plugin ignores this case. Is a quick fix possible? Thanks!

Any comments on this? Are there plans to fix this issue?

Thanks!

Sorry for the wait.

You're experiencing this issue because default values are assigned after the entries in the constructors are assigned, not before. This is the intended behavior. You must update your code to take care of this.

Too bad, ok, I already went with a custom solution. Thanks for your answer.

http://gist.github.com/809264

This small sample initializes without defaults and sets explicitly after initialization