Last change
on this file since 24245 was 24245, checked in by sjb48, 13 years ago |
Oran code for supporting format changes to document.
|
-
Property svn:executable
set to
*
|
File size:
714 bytes
|
Line | |
---|
1 | /*
|
---|
2 | * jQuery UI Effects Fade 1.8rc1
|
---|
3 | *
|
---|
4 | * Copyright (c) 2010 AUTHORS.txt (http://jqueryui.com/about)
|
---|
5 | * Dual licensed under the MIT (MIT-LICENSE.txt)
|
---|
6 | * and GPL (GPL-LICENSE.txt) licenses.
|
---|
7 | *
|
---|
8 | * http://docs.jquery.com/UI/Effects/Fade
|
---|
9 | *
|
---|
10 | * Depends:
|
---|
11 | * jquery.effects.core.js
|
---|
12 | */
|
---|
13 | (function($) {
|
---|
14 |
|
---|
15 | $.effects.fade = function(o) {
|
---|
16 | return this.queue(function() {
|
---|
17 | var elem = $(this),
|
---|
18 | mode = $.effects.setMode(elem, o.options.mode || 'hide');
|
---|
19 |
|
---|
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 | });
|
---|
30 | };
|
---|
31 |
|
---|
32 | })(jQuery);
|
---|
Note:
See
TracBrowser
for help on using the repository browser.