Closed creynders closed 10 years ago
Ahh! good! I had asked if you wanted me to change the tests because it involved removing existing tests concerning the createChildResolver
function. Just wanted to make sure you guys were ok with the changes before devoting too much time to this. But I'm totally happy if you did the tests!
BTW, I'm so busy with a conversion to Geppetto that I've undertaken lately that I'm having a hard time keeping up with the discussions here. But if fixed parent contexts are to be included in the patch release, perhaps there would be an interest in a little but extremely useful function function I've added and am using a lot. I call it dispatchToParents
and the difference with the existing dispatchToParent
is that it bubbles up events. I could probably find time today to add it with some tests if you think it's a good idea for this patch release. With working parent contexts, it's just something one would expect to be available, IMHO. For now, it's just a plain vanilla thing, but later features could be added such as the possibility to stop propagation somewhere along the context inheritance chain, or the possibility to start dispatching on current context instead of parent. But for now, the basic implementation is ultra simple an it is very useful.
Looks great, @creynders ! Any more changes you want to get in before we create a new release?
@mmikeyy : With regard to bubbling events to multiple levels of parents, I think it could be useful. Please feel free to create a PR for this. There is some history/discussion on that here as well: https://github.com/ModelN/backbone.geppetto/issues/34
Hey @mmikeyy I hope you don't mind but I modified the tests to make #54 pass. Sorry, just eager to getting a patch release and definitely wanted to squeeze your changes in too.
@geekdave I added a few uncovered testing paths as well, no major stuff, just keeping that percentage up there.