SteveSanderson/knockout — pull request #292 by jamesfoster (2012-01-25 17:12:00+00:00)
Title: Observable dictionary

Hi

I thought I'd merge my observable dictionary code into the code of knockout and submit a pull request.

here's the original project:
https://github.com/jamesfoster/knockout.observableDictionary

the main difference from that project is that ko.observableDictionary now derives from ko.observableArray which helps with the syntax i.e. `foreach: properties` instead of `foreach: properties.items`.

I've made all the observableArray behaviours pass for the observableDictionary. There are a few minor changes to the core to allow all the tests to pass, namely a new `transform` function which if defined can intercept the write operation. (implementing observableDictionary as a dependantObservable would have grossly over complicated things)

Let me know what you think?

Cheers

James