On 12/28/12 4:12 AM, Neil wrote:
In the interim I believe foo.constructor.name == "Array" was popular, but I see that doesn't work for (e.g.) new Image().
This should work (modulo bugs in exactly the cases where we've hacked the instanceof behavior) for WebIDL bindings, actually. We could also make it work for XPConnect DOM constructors....
Sadly, it's not much better than using .ownerDocument.defaultView on the RHS of instanceof in terms of typing and having to remember to do it.
-Boris _______________________________________________ dev-platform mailing list dev-platform@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-platform