When I see singleton objects in JavaScript, I mostly consider them poor man’s modules (including the Object.* methods).
You could write a jQuery module that exports the “everything else” functions and the identifiers $ and jQuery for the DOM stuff. On Nov 5, 2011, at 0:28 , Rick Waldron wrote: > No, not at all. It's a conscious design decision that results in only > introducing one new property to the global object (two if you count the > shorthand reference to $) >> This pattern makes is _very_ easy for newer developers/adopters to >> understand the division of functionality: >> >> - DOM methods here: jQuery().foo() >> - Everything else here: jQuery.bar() -- Dr. Axel Rauschmayer [email protected] home: rauschma.de twitter: twitter.com/rauschma blog: 2ality.com
_______________________________________________ es-discuss mailing list [email protected] https://mail.mozilla.org/listinfo/es-discuss

