unction package(ns) {
   ns = ns.split('.');
   var cur = window, i;
   while ( i = ns.shift() ) {
       if ( !cur[i] ) cur[i] = {};
       cur = cur[i];
   }

}


For us, less expirienced, can  someone explain  this code? And what is
benefit od namespaces?
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

Reply via email to