On Wed, Apr 30, 2014 at 1:22 PM, Rick Waldron <waldron.r...@gmail.com>wrote:

>
> On Wed, Apr 30, 2014 at 1:14 PM, Axel Rauschmayer <a...@rauschma.de>wrote:
>
>>
>>
>
>> * Hard-coding `with` to ignore only Array.prototype.values.
>>
>
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.

>From Web Animation spec

interface Animatable {
  AnimationPlayer animate (object? effect, optional (double or TimingInput)
timing);
  ...
}

Element implements Animatable;

This means that any HTML attribute event handler that tries to call a
global function called animate are now broken.

@unscopable allows us to have nice things.

-- 
erik
_______________________________________________
es-discuss mailing list
es-discuss@mozilla.org
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to