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

v1 fixes #89

Merged
merged 3 commits into from
Dec 21, 2017
Merged

v1 fixes #89

merged 3 commits into from
Dec 21, 2017

Conversation

muan
Copy link
Contributor

@muan muan commented Dec 20, 2017

For #67. @josh I made 2 fixes here:

  1. Update callback names
  2. Define custom elements after use, in polymer.html. More on this πŸ‘‡πŸ»

This is a super weird Chrome bug that took away hours of my life 😭. While testing I noticed that it looks broken:

It doesn't happen in Safari. Turns out a bug has been filed: https://bugs.chromium.org/p/chromium/issues/detail?id=739417 Here's another test case I made: http://jsbin.com/xizojipoji/1/edit?html,output It seems like the original textContent gets appended late when element is defined before use, so it can't be cleared/replaced because it didn't exist.

cc @dgraham cause we talked about this.


Anyways all looks good now I think! ✨

Do you know if there's an efficient way to test the setInterval update for relative-time? The broken callbacks didn't get caught by the test.

Fixes maximum call stack size exceeded.
@muan
Copy link
Contributor Author

muan commented Dec 20, 2017

Oops forgot about this: title is being set repeatedly because setAttribute('title', title) triggers the callback.

e80897f fixes it.

@tuespetre
Copy link

Oh man that Chrome bug has been πŸ› bugging me!

@muan muan merged commit 63d460c into custom-elements-v1 Dec 21, 2017
@muan muan deleted the muan/fixes branch December 21, 2017 01:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants