Merge "Minor CSS cleanup for Vector and Monobook skins"
[mediawiki.git] / resources / jquery.effects / jquery.effects.fade.js
blob7aa37b1aa747ebb5301a0f2c60464ce2ef177b8f
1 /*!
2  * jQuery UI Effects Fade 1.8.24
3  *
4  * Copyright 2012, AUTHORS.txt (http://jqueryui.com/about)
5  * Dual licensed under the MIT or GPL Version 2 licenses.
6  * http://jquery.org/license
7  *
8  * http://docs.jquery.com/UI/Effects/Fade
9  *
10  * Depends:
11  *      jquery.effects.core.js
12  */
13 (function( $, undefined ) {
15 $.effects.fade = function(o) {
16         return this.queue(function() {
17                 var elem = $(this),
18                         mode = $.effects.setMode(elem, o.options.mode || 'hide');
20                 elem.animate({ opacity: mode }, {
21                         queue: false,
22                         duration: o.duration,
23                         easing: o.options.easing,
24                         complete: function() {
25                                 (o.callback && o.callback.apply(this, arguments));
26                                 elem.dequeue();
27                         }
28                 });
29         });
32 })(jQuery);