Perhaps @@unscopable shouldn't be a Set...

Axel Rauschmayer axel at rauschma.de
Wed Apr 30 11:49:47 PDT 2014


> My main use case for unscopable is for DOM. Today we cannot add nice named methods to Element or any of its superclasses since HTML attribute event handlers uses ObjectEnvironments.

So Element.prototype is in the variable scope chain of event handlers? Wow. Is this documented somewhere?

Thanks!

Axel

-- 
Dr. Axel Rauschmayer
axel at rauschma.de

home: rauschma.de
twitter: twitter.com/rauschma
blog: 2ality.com





More information about the es-discuss mailing list