Re: [Clipboard API] The before* events

On Thu, Nov 1, 2012 at 5:14 PM, Hallvord Reiar Michaelsen Steen <
hallvord@opera.com> wrote:

> The most IMHO elegant solution is what we implemented in Opera: we simply
> keep relevant menu entries enabled if there are event listeners registered
> for the corresponding event. This sort of goes against the "registering
> event listeners should not have side effects" rule, but it's a UI effect
> the page can't detect so I guess it's ok.
>

This doesn't really work when pages put their event listeners further up
the tree, eg. capturing listeners on the document and other "event
delegation" tricks, right?

-- 
Glenn Maynard

Received on Thursday, 1 November 2012 23:56:56 UTC