Skip to content
Permalink
Browse files
You can now assign jQuery to random namespaces - very cool. (Bug #1393)
  • Loading branch information
jeresig committed Aug 21, 2007
1 parent b6d920c commit c8bd6e0a4aef14ad4808a63fc106849918ea4666
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
@@ -1,2 +1,2 @@
// prevent execution of jQuery if included more than once
if(typeof window.jQuery == "undefined") (function(){
if ( typeof jQuery == "undefined" ) (function(){
@@ -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);

0 comments on commit c8bd6e0

Please sign in to comment.