corrade-http-templates – Blame information for rev 57

Subversion Repositories:
Rev:
Rev Author Line No. Line
57 office 1 /*!
2 * jQuery UI Effects Puff 1.12.1
3 * http://jqueryui.com
4 *
5 * Copyright jQuery Foundation and other contributors
6 * Released under the MIT license.
7 * http://jquery.org/license
8 */
9  
10 //>>label: Puff Effect
11 //>>group: Effects
12 //>>description: Creates a puff effect by scaling the element up and hiding it at the same time.
13 //>>docs: http://api.jqueryui.com/puff-effect/
14 //>>demos: http://jqueryui.com/effect/
15  
16 ( function( factory ) {
17 if ( typeof define === "function" && define.amd ) {
18  
19 // AMD. Register as an anonymous module.
20 define( [
21 "jquery",
22 "../version",
23 "../effect",
24 "./effect-scale"
25 ], factory );
26 } else {
27  
28 // Browser globals
29 factory( jQuery );
30 }
31 }( function( $ ) {
32  
33 return $.effects.define( "puff", "hide", function( options, done ) {
34 var newOptions = $.extend( true, {}, options, {
35 fade: true,
36 percent: parseInt( options.percent, 10 ) || 150
37 } );
38  
39 $.effects.effect.scale.call( this, newOptions, done );
40 } );
41  
42 } ) );