Skip to content
Snippets Groups Projects
Commit 20e3e8eb authored by Andreas Gohr's avatar Andreas Gohr
Browse files

added some function comments

parent 5b812846
No related branches found
No related tags found
No related merge requests found
......@@ -112,14 +112,31 @@ var dw_behaviour = {
};
/**
* Hides elements with a slide animation
*
* @param fn optional callback to run after hiding
* @author Adrian Lang <mail@adrianlang.de>
*/
jQuery.fn.dw_hide = function(fn) {
return this.slideUp('fast', fn);
};
jQuery.fn.dw_show = function() {
return this.slideDown('fast');
/**
* Unhides elements with a slide animation
*
* @param fn optional callback to run after hiding
* @author Adrian Lang <mail@adrianlang.de>
*/
jQuery.fn.dw_show = function(fn) {
return this.slideDown('fast', fn);
};
/**
* Toggles visibility of an element using a slide element
*
* @param bool the current state of the element (optional)
*/
jQuery.fn.dw_toggle = function(bool) {
return this.each(function() {
var $this = jQuery(this);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment