Skip to content

Instantly share code, notes, and snippets.

@pivotal-ember
Created April 15, 2010 00:26
Show Gist options
  • Save pivotal-ember/366513 to your computer and use it in GitHub Desktop.
Save pivotal-ember/366513 to your computer and use it in GitHub Desktop.
jQuery.fn['fadeIn'] = function( speed, callback ){
this.show();
if (!!callback) { callback.call(); }
return this;
};
jQuery.fn['fadeOut'] = function( speed, callback ){
this.hide();
if (!!callback) { callback.call(); }
return this;
};
jQuery.fn['slideToggle'] = function( speed, callback ){
this.toggle();
if (!!callback) { callback.call(); }
return this;
};
jQuery.fn['animate'] = function( properties, speed, easing, callback ){
if (!!callback) { callback.call(); }
return this
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment