[Bug 18732] [Custom]: element upgrade algorithm does not preserve attributes, event listeners, references

https://www.w3.org/Bugs/Public/show_bug.cgi?id=18732

--- Comment #13 from Olli Pettay <bugs@pettay.fi> 2012-08-29 21:13:26 UTC ---
(In reply to comment #11)
> Oh. One problem -- how do I bind a listener to specific instance? I guess I
> can't, but that's what the "created" callback is for :)

Why you need to bind. I was thinking 'this' would be correct.
Effectively when the element is created, 
element.addEventListener("click", options.listeners.click) would be called.
(Might need some flag for capturing too)

-- 
Configure bugmail: https://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

Received on Wednesday, 29 August 2012 21:13:27 UTC