Skip to content
Permalink
Browse files

Removed (hopefully) all references to $ within the jQuery code itself

  • Loading branch information
jzaefferer committed Oct 6, 2006
1 parent e218628 commit 7b2c84ddbe004ed4ab2ee3982af40b7275d7dfde
Showing with 8 additions and 12 deletions.
  1. +3 −3 src/ajax/ajax.js
  2. +1 −1 src/event/event.js
  3. +2 −2 src/fx/fx.js
  4. +2 −6 src/jquery/jquery.js
@@ -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);
});
},

@@ -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 );

0 comments on commit 7b2c84d

Please sign in to comment.
You can’t perform that action at this time.