Hi guys! i am fairly new to this web2.0 thingie and still developing my _javascript_ skills.
i have seen the yui and prototype-scriptaculous library and i found both to be compellingly rich.

both Prototype and  Scriptaculous declares their respective namespace like this:

var ObjectName  = {
  propertyOne: propertyValue,
  methodOne: function (argv1, argv2) {
    //do something here
  }
}

while YUI does something like this:

var ObjectName = function () {
  return {
    propertyOne: propertyValue,
    methodOne: function (argv1,argv2) {
      //do something here...
    }
  }
}();

they both seem to work fine, but are there any difference? performace wise?

thanks in advance!
_______________________________________________
Rails-spinoffs mailing list
[email protected]
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs

Reply via email to