Permalink
Browse files

small simplification with $getPath

  • Loading branch information...
1 parent 4c9a19d commit 737d593c5bc672dbfafdd497260871728a5281a9 James MacAulay committed Mar 28, 2012
Showing with 1 addition and 3 deletions.
  1. +1 −3 src/batman.coffee
View
@@ -4690,9 +4690,7 @@ class Batman.DOM.AbstractBinding extends Batman.Object
# If we're working with an `@key` and not an `@value`, find the context the key belongs to so we can
# hold a reference to it for passing to the `dataChange` and `nodeChange` observers.
if k = @get('key')
- if keyContext = @get('keyContext')
- prop = Batman.Property.forBaseAndKey(keyContext, k)
- Batman.RenderContext.deProxy(prop.getValue())
+ Batman.RenderContext.deProxy($getPath(this, ['keyContext', k]))
else
@get('value')
set: (_, value) ->

0 comments on commit 737d593

Please sign in to comment.