There's another problem I can see..

replacing `sub[key]` by `get(sub, key)` also won't trigger when 
`sub[key]`'s value is changed.. since the *value* isn't watched, only the 
constituants, so if the `sub` doesn't change, and the name of the `key` 
doesn't change, nothing will trigger an update when you change the value 
for `sub[key]`..

That's even worse :)

Alexandre


On Thursday, 4 June 2015 19:42:38 UTC-4, Vartan Simonian wrote:
>
> I’ve written up a guide to accomplishing two-way data-binding without 
> bracket-notation 
> <https://stackoverflow.com/questions/30631301/polymer-1-0-array-style-path-accessors-alternative-to-bracket-notation-in-exp/30655976#30655976>
>  
> with a sample usage case as an answer to a related question on Stack 
> Overflow.
>
> It seems very (unnecessarily?) complex compared to binding to obj[key] - 
> but of course, I am not yet aware of the performance implications by both 
> methods, so I cannot call any judgement.
> ​
>

Follow Polymer on Google+: plus.google.com/107187849809354688692
--- 
You received this message because you are subscribed to the Google Groups 
"Polymer" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/polymer-dev/075ba16e-f3a5-4eec-9b7e-fe5ad3a8b369%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to