nikhilk/scriptsharp — pull request #152 by elkdanger (2012-02-24 11:27:54+00:00)
Title: Knockout API revisions

I've made some revisions to the Knockout bindings to more closely reflect the actual API.

Originally, the methods toJS and toJSON were implemented on Knockout.Mapping, whereas actually these methods exist on the core Knockout static object in the actual API. Thanks to the ScriptAlias attribute, these were being generated correctly in the Javascript, but it would be better if the Script# API reflected the actual API more closely. I have moved these into the correct place.

I've also added back in the toJS method which IS part of the Mapping plugin, in the form of ModelToObject (and ModelToObject) with the correct ScriptName attribute.