2 ms·
>> I just don't get what it adds to your code apart from hiding simple function definitions in the visual trappings of a static helper object or closure. Javasc
by jonahx 14y ago
>> I just don't get what it adds to your code apart from hiding simple function definitions in the visual trappings of a static helper object or closure. Javascript is already homogeneous enough without making it visually even more.
What method do you use instead of the following, when creating namespaces?
var yourNamespace = {
foo: function() {
},
bar: function() {
}
};