On Oct 30, 2011, at 5:58 AM, David Bruant <bruan...@gmail.com> wrote:
> Le 30/10/2011 02:35, Quildreen Motta a écrit : >> (...) >> >>> Are we overthinking classes? >> >> Perhaps the reason for all this thinking about classes come from the >> role constructor functions take in the language? I'm a bit sceptical >> on constructors and constructor's own properties being that important, >> though. > I agree. Has anyone used constructor properties for "static" properties? > Just considering the DOM, constants are put on the prototype and > everyone sounds happy with it so far. > In jQuery, John/we put "static" methods and properties on the jQuery() function - this practice is used for anything that is not a selector match operation. This includes Ajax and Deferred (among others). Considering jQuery is used on >26.6million websites, it's safe to bet that practice is in common use. Rick > David > _______________________________________________ > es-discuss mailing list > es-discuss@mozilla.org > https://mail.mozilla.org/listinfo/es-discuss _______________________________________________ es-discuss mailing list es-discuss@mozilla.org https://mail.mozilla.org/listinfo/es-discuss