On 9/1/17 1:06 PM, Kris Maglione wrote:
  if (ChromeUtils.getClassName(element) == "HTMLEmbedElement")

Ah, that works. Though I think spidermonkey wants to maybe get rid of classnames.... and on the flip side it's not clear whether HTMLEmbedElement.prototype will end up with the same classname as HTMLEmbedElement instances. :(

That has the unfortunate side-effect of allocating a new JS string for every call, but we can probably optimize it if it becomes necessary.

We could add a hasClassName if we wanted.

-Boris
_______________________________________________
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform

Reply via email to