Hi,

> // Implementation:
> $.require = function(names) {
>       $.each(names.split(","), function(i, n) {
>               if( !$.fn[n] || $[n] )
>                       throw "required plugin " + n + " not found";
>       });
> }
> // Usage:
> $.require("autocomplete,dimensions");

Why not use OpenAjax?

If you would like to load your js files that way as well, your API looks much 
like the jsPax API. I was planing to make an "OpenAjax"-package for jsPax 
that uses the jsPax package information, but did not get around to do it.

> $.dimensions = {};

OK, here we use $package('dimensions',{}) with jsPax - not really more 
complicated.

Christof

Reply via email to