Re: Bug, feature, or misunderstanding(?) regarding delegates and collections

10 views
Skip to first unread message

Jonas Nicklas

unread,
Dec 3, 2012, 5:33:06 PM12/3/12
to seren...@googlegroups.com
That sounds like a bug, actually. Seems like that *should* work. Can you open an issue on Github?

/Jonas


On Mon, Dec 3, 2012 at 10:41 PM, Bryan Richter <bryan....@gmail.com> wrote:
Below is a branch that has a delegation test that fails. The functionality I had hoped for was that (A) changing a delegate target would (B) update the view for all delegated properties. This works when the property is a "property", but fails when it is a collection.


Should this actually work?

NB: I've tried this without using the delegate functionality, and instead using "get.get" directly:

class M
  @property 'inner'
  @property 'prop'
    get: -> @inner.prop

IIRC, that also doesn't work iff 'prop' is used in a "- collection".

Reply all
Reply to author
Forward
0 new messages