HotDrink / hotdrink

JavaScript MVVM library with support for multi-way dependencies and generic, rich UI behaviors.
http://hotdrink.github.io/hotdrink/
58 stars 9 forks source link

Extensible proxies #13

Closed thejohnfreeman closed 12 years ago

thejohnfreeman commented 12 years ago

Provide a hook point for users to add methods that will be included with new proxies.

thejohnfreeman commented 12 years ago

For now, you can just wrap the hd.__proxies.finishProxy function to extend every proxy, or the hd.__proxies.make*Proxy functions to extend specific proxies. If call stack depth becomes a problem, we can revisit this issue.