Closed chasenlehara closed 6 years ago
lgtm
@chasenlehara what happens now when you export a plain object from the view-model
script? Is there a different warning? does it still work as intended (extending types.DefaultMap
)?
Providing a plain object as the ViewModel works, but I have a PR to deprecate it in can-component 3 because the default changes in 4.0 and I don’t think we want people relying on it being a specific type anymore.
This fixes a warning from can-component about assigning a DefineMap to the
viewModel
instead ofViewModel
(capital V).Warnings shown when running the tests before this change:
After this change:
Fixes https://github.com/donejs/done-component/issues/58