You can now assign jQuery to random namespaces - very cool. (Bug #1393)

This commit is contained in:
John Resig 2007-08-21 07:00:06 +00:00
parent b6d920cf05
commit c8bd6e0a4a
2 changed files with 2 additions and 2 deletions

View file

@ -1,2 +1,2 @@
// prevent execution of jQuery if included more than once
if(typeof window.jQuery == "undefined") (function(){
if ( typeof jQuery == "undefined" ) (function(){

View file

@ -19,7 +19,7 @@
* @param jQuery|Element|Array<Element> c context
* @cat Core
*/
window.jQuery = function(a,c) {
var jQuery = window.jQuery = function(a,c) {
// If the context is global, return a new object
if ( window == this || !this.init )
return new jQuery(a,c);