You can now assign jQuery to random namespaces - very cool. (Bug #1393)
This commit is contained in:
parent
b6d920cf05
commit
c8bd6e0a4a
|
@ -1,2 +1,2 @@
|
|||
// prevent execution of jQuery if included more than once
|
||||
if(typeof window.jQuery == "undefined") (function(){
|
||||
if ( typeof jQuery == "undefined" ) (function(){
|
||||
|
|
2
src/jquery/jquery.js
vendored
2
src/jquery/jquery.js
vendored
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue