Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bound Polymer variables not updating (problem w/ observable?) #15512

Closed
DartBot opened this issue Dec 7, 2013 · 4 comments

Comments

@DartBot
Copy link

commented Dec 7, 2013

This issue was originally filed by chris....@gmail.com


What steps will reproduce the problem?

  1. Define and use the example at https://www.dartlang.org/polymer-dart/#data-binding
  2. Click the button

Per the example, the text below the button should update to reflect the number of times the button has been clicked. The text always says "0 times".

This is with:

Dart VM version: 1.0.0.3_r30188 (Tue Nov 12 01:15:45 2013) on "linux_x64"

And a pubspec.yaml that includes only:

dependencies:
  polymer: any

BUT, if I explicitly downgrade observable to 0.9.0:

dependencies:
  polymer: any
  observe: "0.9.0+1"

It works.

@sgjesse

This comment has been minimized.

Copy link
Member

commented Dec 9, 2013

Added Area-Polymer, Triaged labels.

@sigmundch

This comment has been minimized.

Copy link
Member

commented Feb 5, 2014

Added Library-Polymer label.

@jmesserly

This comment has been minimized.

Copy link
Contributor

commented May 14, 2014

polymer:any unfortunately will sometimes pick up very old versions :(. Let me know if this still shows up for you with:

polymer: ">=0.9.5 <0.10.0"


Added AssumedStale label.

@DartBot

This comment has been minimized.

Copy link
Author

commented May 15, 2014

This comment was originally written by chri...@gmail.com


Unfortunately, this still happens. It's not quite as bad as it used to be. Actually, it may not even be a true bug anymore.

The attached, installed in pubspec.yaml, web/index.html, lib/click-counter.html, and lib/click_counter.dart, and pub installed, will currently run with Polymer 0.9.5+2.

If you pub serve the application, access it in Dartium, and click the “Click Me” button, the counter is not updated. It won't work in other browsers due to a lack of a pubspec.yaml transformer.

My expectation is that, even without a transformer, this ought to still work in Dartium. The element is evaluated and added to the page as expected. But the observable variable is not updated.

Perhaps it is unreasonable to expect that this work without a transformer, but it used to (a long while back) and everything else does. Not a huge bug and there is a workaround.

Perhaps just a note in documentation somewhere?


Attachments:
pubspec.yaml (54 Bytes)
index.html (271 Bytes)
click-counter.html (260 Bytes)
click_counter.dart (296 Bytes)

This issue was closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
5 participants
You can’t perform that action at this time.