howard chen schrieb:
Halo,
To many of us, jquery is a swiss army knife rather than complex js
library such as dojo or yui.
But sometimes, we really want to integrate jquery into our existing
library in used, e.g. YUI or home-made library
But we want jquery to under a specific namespace, such as
YAHOO.util.jquery...
something like that...
Is it possible?
YAHOO.util.jquery = jQuery;
If that doesn't suffice, you need to modify the jQuery source:
var jQuery = YAHOO.util.jquery = function() {
// main jQuery function
}
The var jQuery is then scoped inside the surrounding if-block and no
more a global variable
--
Jörn Zaefferer
http://bassistance.de