Re: Better event listeners

On Thu, Jan 10, 2013 at 2:38 PM,  <brandon.wallace@yahoo.com> wrote:
> I believe it has been mentioned that an object leaves the door open for future enhancements.  Returning only a function limits your options for future enhancements.

Given that there's ample precedence for such APIs in setInterval() and
such I'm not too worried about that. Enhancements will always be
possible one way or another. Memory usage and added complexity are
also considerations.


-- 
http://annevankesteren.nl/

Received on Thursday, 10 January 2013 13:42:17 UTC