UPDATE 4.4.0.0
[phpmyadmin.git] / js / jquery / src / jquery-ui / effect-fade.js
blob0dc9d07947974a760570d671399b772a738a7aa7
1 /*!
2  * jQuery UI Effects Fade 1.11.2
3  * http://jqueryui.com
4  *
5  * Copyright 2014 jQuery Foundation and other contributors
6  * Released under the MIT license.
7  * http://jquery.org/license
8  *
9  * http://api.jqueryui.com/fade-effect/
10  */
11 (function( factory ) {
12         if ( typeof define === "function" && define.amd ) {
14                 // AMD. Register as an anonymous module.
15                 define([
16                         "jquery",
17                         "./effect"
18                 ], factory );
19         } else {
21                 // Browser globals
22                 factory( jQuery );
23         }
24 }(function( $ ) {
26 return $.effects.effect.fade = function( o, done ) {
27         var el = $( this ),
28                 mode = $.effects.setMode( el, o.mode || "toggle" );
30         el.animate({
31                 opacity: mode
32         }, {
33                 queue: false,
34                 duration: o.duration,
35                 easing: o.easing,
36                 complete: done
37         });
40 }));