wp/wp-includes/js/jquery/ui/effect-puff.js
changeset 19 3d72ae0968f4
parent 18 be944660c56a
child 21 48c4eec2b7e6
equal deleted inserted replaced
18:be944660c56a 19:3d72ae0968f4
     1 /*!
     1 /*!
     2  * jQuery UI Effects Puff 1.12.1
     2  * jQuery UI Effects Puff 1.13.1
     3  * http://jqueryui.com
     3  * http://jqueryui.com
     4  *
     4  *
     5  * Copyright jQuery Foundation and other contributors
     5  * Copyright jQuery Foundation and other contributors
     6  * Released under the MIT license.
     6  * Released under the MIT license.
     7  * http://jquery.org/license
     7  * http://jquery.org/license
    12 //>>description: Creates a puff effect by scaling the element up and hiding it at the same time.
    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/
    13 //>>docs: http://api.jqueryui.com/puff-effect/
    14 //>>demos: http://jqueryui.com/effect/
    14 //>>demos: http://jqueryui.com/effect/
    15 
    15 
    16 ( function( factory ) {
    16 ( function( factory ) {
       
    17 	"use strict";
       
    18 
    17 	if ( typeof define === "function" && define.amd ) {
    19 	if ( typeof define === "function" && define.amd ) {
    18 
    20 
    19 		// AMD. Register as an anonymous module.
    21 		// AMD. Register as an anonymous module.
    20 		define( [
    22 		define( [
    21 			"jquery",
    23 			"jquery",
    25 	} else {
    27 	} else {
    26 
    28 
    27 		// Browser globals
    29 		// Browser globals
    28 		factory( jQuery );
    30 		factory( jQuery );
    29 	}
    31 	}
    30 }( function( $ ) {
    32 } )( function( $ ) {
       
    33 "use strict";
    31 
    34 
    32 return $.effects.define( "puff", "hide", function( options, done ) {
    35 return $.effects.define( "puff", "hide", function( options, done ) {
    33 	var newOptions = $.extend( true, {}, options, {
    36 	var newOptions = $.extend( true, {}, options, {
    34 		fade: true,
    37 		fade: true,
    35 		percent: parseInt( options.percent, 10 ) || 150
    38 		percent: parseInt( options.percent, 10 ) || 150
    36 	} );
    39 	} );
    37 
    40 
    38 	$.effects.effect.scale.call( this, newOptions, done );
    41 	$.effects.effect.scale.call( this, newOptions, done );
    39 } );
    42 } );
    40 
    43 
    41 } ) );
    44 } );