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

Recursive binding #8

Closed thejohnfreeman closed 12 years ago

thejohnfreeman commented 12 years ago

Binders should be able to recurse by directly calling hd.bind. They should also be able to pass an object literal to extend the sub-context, e.g.:

{
  $index: i,
  $forloop: {
    $index: i,
    $next:  i+1,
    $prev:  i-1
  }
}
thejohnfreeman commented 12 years ago

Implemented in d2b037bd267c2c948a50162d06f1824e53f08729, but untested.