Joe Pea

Results 1897 comments of Joe Pea

I gave it a shot like the following, but it works: ```html class ClickCounter { constructor(element) { this.element = element this.count = 0 } connectedCallback() { this.render() this.element.addEventListener('click', () =>...

Ah, thank you for the repro. This isn't something that can be solved in element-behaviors, or even in custom elements API. The code is just doing what you're telling it...

> Thanks for writing and maintaining this library! No prob! I was pleasantly surprised someone used it. Thanks for the input!

> But your library it is only called once and then on subsequent times a new object is created and then the `connectedCallback` is called on that new object. So,...

> I think an elegant solution to this problem might be something like this (not tested): That's a nice attempt, but the only problem (that already exists regardless of your...

Mmm, yeah, I'm imagining monkey patching will be the way to go! The following is what we'll need to patch: To catch all construction/connected/disconnected cases: - el.innerHTML - el.outerHTML -...

Can you please not close issues with no activity? Otherwise valid and good issues get forgotten.

@Daniel15 Indeed. hehe. Sorry. 😆

I deleted my posts here, and re-posted on React instead, and toned it down just a bit. https://github.com/facebook/react/issues/10126

Here's a jsfiddle showing DOM animation in this way: http://jsfiddle.net/Ut2X6/ I'd highly recommend not to do it that way (the circular movement part, although the incrementing of the numbers is...