Removed (hopefully) all references to $ within the jQuery code itself
This commit is contained in:
parent
e218628dda
commit
7b2c84ddbe
|
@ -87,9 +87,9 @@ jQuery.fn.extend({
|
|||
self.html(res.responseText).each( callback, [res.responseText, status] );
|
||||
|
||||
// Execute all the scripts inside of the newly-injected HTML
|
||||
$("script", self).each(function(){
|
||||
jQuery("script", self).each(function(){
|
||||
if ( this.src )
|
||||
$.getScript( this.src );
|
||||
jQuery.getScript( this.src );
|
||||
else
|
||||
eval.call( window, this.text || this.textContent || this.innerHTML || "" );
|
||||
});
|
||||
|
@ -124,7 +124,7 @@ jQuery.fn.extend({
|
|||
* @cat AJAX
|
||||
*/
|
||||
serialize: function() {
|
||||
return $.param( this );
|
||||
return jQuery.param( this );
|
||||
}
|
||||
|
||||
});
|
||||
|
|
|
@ -1658,7 +1658,7 @@ new function(){
|
|||
};
|
||||
|
||||
// Clean up after IE to avoid memory leaks
|
||||
if ($.browser.msie) $(window).unload(function() {
|
||||
if (jQuery.browser.msie) jQuery(window).unload(function() {
|
||||
var event = jQuery.event, global = event.global;
|
||||
for (var type in global) {
|
||||
var els = global[type], i = els.length;
|
||||
|
|
|
@ -173,8 +173,8 @@ jQuery.fn.extend({
|
|||
*/
|
||||
slideToggle: function(speed,callback){
|
||||
return this.each(function(){
|
||||
var state = $(this).is(":hidden") ? "show" : "hide";
|
||||
$(this).animate({height: state}, speed, callback);
|
||||
var state = jQuery(this).is(":hidden") ? "show" : "hide";
|
||||
jQuery(this).animate({height: state}, speed, callback);
|
||||
});
|
||||
},
|
||||
|
||||
|
|
8
src/jquery/jquery.js
vendored
8
src/jquery/jquery.js
vendored
|
@ -1384,10 +1384,6 @@ jQuery.extend({
|
|||
o.className += ( o.className ? " " : "" ) + c;
|
||||
},
|
||||
remove: function(o,c){
|
||||
/*
|
||||
o.className = !c ? "" :
|
||||
o.className.replace(
|
||||
new RegExp("(^|\\s*\\b[^-])"+c+"($|\\b(?=[^-]))", "g"), "");*/
|
||||
if( !c ) {
|
||||
o.className = "";
|
||||
} else {
|
||||
|
@ -1497,7 +1493,7 @@ jQuery.extend({
|
|||
for ( var i = 0; i < a.length; i++ ) {
|
||||
if ( a[i].constructor == String ) {
|
||||
// trim whitespace, otherwise indexOf won't work as expected
|
||||
a[i] = $.trim(a[i]);
|
||||
a[i] = jQuery.trim(a[i]);
|
||||
|
||||
var table = "";
|
||||
|
||||
|
@ -1837,7 +1833,7 @@ jQuery.extend({
|
|||
if ( fix[name] ) {
|
||||
if ( value != undefined ) elem[fix[name]] = value;
|
||||
return elem[fix[name]];
|
||||
} else if( value == undefined && $.browser.msie && elem.nodeName && elem.nodeName.toUpperCase() == 'FORM' && (name == 'action' || name == 'method') ) {
|
||||
} else if( value == undefined && jQuery.browser.msie && elem.nodeName && elem.nodeName.toUpperCase() == 'FORM' && (name == 'action' || name == 'method') ) {
|
||||
return elem.getAttributeNode(name).nodeValue;
|
||||
} else if ( elem.getAttribute != undefined ) {
|
||||
if ( value != undefined ) elem.setAttribute( name, value );
|
||||
|
|
Loading…
Reference in a new issue