wp/wp-includes/js/jquery/ui/effect-bounce.js
changeset 19 3d72ae0968f4
parent 18 be944660c56a
child 21 48c4eec2b7e6
equal deleted inserted replaced
18:be944660c56a 19:3d72ae0968f4
     1 /*!
     1 /*!
     2  * jQuery UI Effects Bounce 1.12.1
     2  * jQuery UI Effects Bounce 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: Bounces an element horizontally or vertically n times.
    12 //>>description: Bounces an element horizontally or vertically n times.
    13 //>>docs: http://api.jqueryui.com/bounce-effect/
    13 //>>docs: http://api.jqueryui.com/bounce-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",
    24 	} else {
    26 	} else {
    25 
    27 
    26 		// Browser globals
    28 		// Browser globals
    27 		factory( jQuery );
    29 		factory( jQuery );
    28 	}
    30 	}
    29 }( function( $ ) {
    31 } )( function( $ ) {
       
    32 "use strict";
    30 
    33 
    31 return $.effects.define( "bounce", function( options, done ) {
    34 return $.effects.define( "bounce", function( options, done ) {
    32 	var upAnim, downAnim, refValue,
    35 	var upAnim, downAnim, refValue,
    33 		element = $( this ),
    36 		element = $( this ),
    34 
    37 
   104 	element.queue( done );
   107 	element.queue( done );
   105 
   108 
   106 	$.effects.unshift( element, queuelen, anims + 1 );
   109 	$.effects.unshift( element, queuelen, anims + 1 );
   107 } );
   110 } );
   108 
   111 
   109 } ) );
   112 } );