[Bug 15157] [Custom Elements]: maybe have a property to test if an element is 'upgraded' or not?

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

Dominic Cooney <dominicc@chromium.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |dominicc@chromium.org

--- Comment #2 from Dominic Cooney <dominicc@chromium.org> 2012-05-22 01:56:36 UTC ---
Probably the best way to do this test is:

if (!(y instanceof FancyButton)) {
  …

This seems pretty clean; it does not depend on the specifics of the FancyButton
interface and it is clear that the "else" branch can depend on that interface.

-- 
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 Tuesday, 22 May 2012 01:57:00 UTC