> I don't understand the point of using
> Widget.TagCloud.prototype = (function() return { **object literal
[quoted text clipped - 3 lines]
> directly? I am guessing there are some encapsulation reasons, but I
> am not sure what.
I think people just like showing off that they can make
code that's difficult to understand. Maybe job security?
~dd
-Lost - 30 Jun 2007 22:11 GMT
>> I don't understand the point of using
>> Widget.TagCloud.prototype = (function() return { **object literal
[quoted text clipped - 6 lines]
> I think people just like showing off that they can make
> code that's difficult to understand. Maybe job security?
What is so difficult to understand about function expressions?
http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Functions#The
_function_expression_.28function_operator.29
Also, see these 2 posts by RobG:
http://groups.google.com/group/comp.lang.javascript/browse_thread/thread/81dc186
f8b18d43a/cae1a902ffd2b059?lnk=gst&q=author%3ARobG+function+expressions&rnum=1#c
ae1a902ffd2b059
http://groups.google.com/group/comp.lang.javascript/browse_thread/thread/97fec2f
85a3e5213/9c747801812ebfc2?lnk=gst&q=author%3ARobG+function+expressions&rnum=2#9
c747801812ebfc2

Signature
-Lost
Remove the extra words to reply by e-mail. Don't e-mail me. I am
kidding. No I am not.