Open asselin opened 7 years ago
This is a good idea. I guess that because the second argument is already an object it wouldn't be possible to just detect whether someone is using arguments or an object :(
@callumacrae Do you have any issue with me merging in this PR--- it will break the existing API, but in the end I think it's for the best
Also, have you seen this discussion re: unit testing in Vue: https://forum.vuejs.org/t/is-anything-being-done-in-core-vue-to-make-unit-testing-easier/7431/9 ? Are you interested in participating?
Yep, I like the API changes made in this PR. Looks like it needs a bit of cleaning up and documenting, but happy for you to merge :)
Hadn't seen that, will sign up and reply.
EXAMPLE to be discussed-- mount API that takes 1 options object instead of 3 parameters