Re: Better event listeners

On 1/5/13 2:30 PM, Glenn Maynard wrote:
> we can override addEventListener straightforwardly, when the
> third parameter is a dictionary instead of a boolean

You'll have to use a union with switching on the passed-in type in the 
prose (because people made the boolean optional, and dictionaries are 
always optional, so using overloads here would make 2-argument calls 
ambiguous).

But I think the union _might_ work.  I haven't checked carefully.

-Boris

Received on Sunday, 6 January 2013 00:43:19 UTC