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
Closed

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

DartBot opened this issue Dec 7, 2013 · 4 comments
Labels
closed-obsolete Closed as the reported issue is no longer relevant

Comments

@DartBot
Copy link

DartBot 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
Copy link
Contributor

sgjesse commented Dec 9, 2013

Added Area-Polymer, Triaged labels.

@sigmundch
Copy link
Member

Added Library-Polymer label.

@jmesserly
Copy link

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
Copy link
Author

DartBot 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)

@DartBot DartBot added Type-Defect closed-obsolete Closed as the reported issue is no longer relevant labels May 15, 2014
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
closed-obsolete Closed as the reported issue is no longer relevant
Projects
None yet
Development

No branches or pull requests

5 participants