Merge branch 'master' of https://github.com/jclain/jquery into jclain-master

1.7/enhancement_8685
John Resig 2011-04-12 16:26:41 -04:00
commit 122514a8da
1 changed files with 4 additions and 2 deletions

View File

@ -358,9 +358,11 @@ jQuery.extend = jQuery.fn.extend = function() {
jQuery.extend({
noConflict: function( deep ) {
window.$ = _$;
if ( window.$ === jQuery ) {
window.$ = _$;
}
if ( deep ) {
if ( deep && window.jQuery === jQuery ) {
window.jQuery = _jQuery;
}