Monday, March 8, 2010

Let’s translate YUI3 to jQuery

var $;
YUI().use('*', function(Y){
$ = Y.get;
for(var p in Y) {
$[p] = Y[p];
}
});

// test
$('body').append("boo!");
http://ajaxian.com/archives/friday-fun-lets-translate-yui3-to-jquery?utm_source=feedburner&utm_medium=feed&utm_campaign=Feed%3A+ajaxian+(Ajaxian+Blog)

No comments: