Michael Best

Results 149 comments of Michael Best

While we already do check the parameter type for `ko.observableArray` and `ko.computed`, we don't do it everywhere. Obviously, more checking means earlier catching of user errors. But it also involves...

Can you elaborate more on what you'd like to be able to do?

In 3.5.0, `ko.contextFor` was changed to more accurately report the context applied to the DOM node. It will return `undefined` for a DOM node that hasn't been bound by Knockout,...

This would be a breaking change in `data-bind` bindings. However, this might be okay for components. It would require passing an option when parsing a component's bindings.

I do see the value of copying symbol properties, but I'm concerned that this would be a breaking change.

See https://github.com/knockout/knockout/issues/2353#issuecomment-499809191

@olivermuc Did you try a custom binding? https://knockoutjs.com/documentation/custom-bindings.html

I'm about to start working on adding this feature and am leaning towards including the one in #690 since it includes tests. There are some differences between that version and...

We just released 3.4.0 so it'll be some months before another release. It may be 3.5.0 or 4.0.0.

Creating a custom wrapper binding that calls these functions isn't hard and seems to work just as well: ``` javascript ko.bindingHandlers.foreach2 = { init: ko.bindingHandlers.foreach.init, update: function (element, valueAccessor, allBindings,...