Hi,
Yes, the format changed between 0.8-rc.2 and 0.9. Observers now look more
like computed properties:
observers: [
'userManagerChanged(user.manager.*)'
]
Note that `observers` is now an array, not an object.
Updated doc is imminent, as soon as we have an official 0.9 release.
Thanks,
Arthur
On Thu, May 14, 2015 at 6:18 AM, <[email protected]> wrote:
> Very happy to see the rapid progress being made toward 1.0. You guys are
> awesome.
>
> In the Observing changes to sub-properties section
> <https://www.polymer-project.org/0.8/docs/devguide/properties.html#observing-path-changes>
> of the 0.8 dev guide, the following example is given of how to define an
> observer of a sub-property:
>
> observers: {
> 'user.manager.*': 'userManagerChanged'
> }
>
> However, with v0.9.1, when I define an observer this way I get the error
> "TypeError: observers.forEach is not a function" in
> Polymer.Base._addFeature._addComplexObserverEffects (effects.html:120).
> From what I can tell, the following seems to be the correct syntax:
>
> observers: [
> 'userManagerChanged(user.manager.*)'
> ],
>
> Is this the correct syntax, or is there a bug in the current
> implementation?
>
> Thanks very much!
>
> 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/27a5d297-a0aa-43b7-a5f0-d6af0c5dd2c0%40googlegroups.com
> <https://groups.google.com/d/msgid/polymer-dev/27a5d297-a0aa-43b7-a5f0-d6af0c5dd2c0%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>
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/CADSbU_yH%3DAr0-rHwpLBAZEFYhkKs8OczuETxrs7KPgyvK1dp4Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.