Polymer sets up a property observer for you so you should not have to setup
a getter/setter like this. If you simply include a method named
'objPropChanged', it'll be called whenever the property changes.
objPropChanged: function(oldValue) {
// ....
}
You can customize the name of that method by using an observe block like
this:
observe: {
objProp: '<methodName>'
}
It's possible to use a getter/setter like you've done, but we don't
encourage it because it's a bit more work. To be compatible with
Object.observe, which Polymer uses when Chrome's experimental javascript
flag is on, you'll need to use Object.observe's notification api. See the
examples here for more information:
http://wiki.ecmascript.org/doku.php?id=harmony:observe_api_usage.
On Sat, Feb 1, 2014 at 2:29 PM, <[email protected]> wrote:
> I have discovered that this works in chrome 32 (not canary), the both
> spans are updated to match the input fields.
>
> 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/8bbc6fde-f010-4b4b-b0d5-57ba0eed09f8%40googlegroups.com
> .
>
> For more options, visit https://groups.google.com/groups/opt_out.
>
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/CA%2BrMWZjPvxH2SKZ%2B-TxvV8EiKn-n3tq_X_1NpHjQCr8k5x3skg%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.