Added "subscribe" method to the plain array, to allow for deeper event subscription without having to get the observable.
This avoids having to call ko.getObservable(model, "things") all over the data-bind attributes. You can just bind the tracked array same as you would an observableArray, and a binding that needs to subscribe can just call ".subscribe" on whatever kind of array it receives. See new test in arrays.tests.js for example.
Withdrawing this pull request, as I suspect the code change I proposed may interfere with garbage collection. I have a reasonable alternate solution anyway, which requires no changes to this lib.
Added "subscribe" method to the plain array, to allow for deeper event subscription without having to get the observable.
This avoids having to call
ko.getObservable(model, "things")
all over the data-bind attributes. You can just bind the tracked array same as you would an observableArray, and a binding that needs to subscribe can just call ".subscribe" on whatever kind of array it receives. See new test in arrays.tests.js for example.