Commit c8bd6e0a authored by John Resig's avatar John Resig

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

parent b6d920cf
// 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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment