something like:
var ObjectName = function (){
return {
propertyOne: propertyValue,
methodOne: function () {},
sub: {},
}
}();
ObjectName.sub.ClassOne = Class.create();
ObjectName.sub.ClassOne.prototype = {
//do some stuff here
};
ObjectName.sub.ObjectTwo = {
// do more stuff here..
};
thanks for helping out a newbie.
On 7/21/06, Hill, Greg <[EMAIL PROTECTED]
> wrote:
I'd reckon less than half the list are rails developers, so no worries. If I had to guess, without having concrete numbers, I'd say YUI is likely faster in general. Procedural programming is usually faster than object-oriented programming. That said, Prototype is a lot more flexible and gives you a lot of handy methods for writing concise code. So, I go with prototype, but your situation might be different.
_______________________________________________ Rails-spinoffs mailing list [email protected] http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
