WordPress/wp-includes/js/jquery/ui/effect-clip.min.js
desrosj cf023b82bd Build/Test Tools: Support NodeJS 14.x in the 5.2 branch.
This updates the 5.2 branch to support the latest LTS version of NodeJS (currently 14.x), allowing the same version to be used across all WordPress branches that receive security updates as a courtesy.

In addition to backporting the package updates that happened after branching 5.2, dependencies that were removed in future releases have also been updated to their latest versions.

Props desrosj, dd32, netweb, jorbin, whyisjake.
Merges [45321,45765,45826,45875,46403-46404,46408-46409,47404,47867,47872-47873,48213,48705,49636,49933,49937,49939-49940,49983,49989,50017,50126,50176,50185] to the 5.2 branch.
See #52341.
Built from https://develop.svn.wordpress.org/branches/5.2@50191


git-svn-id: http://core.svn.wordpress.org/branches/5.2@49869 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-02-05 03:20:06 +00:00

11 lines
908 B
JavaScript

/*!
* jQuery UI Effects Clip 1.11.4
* http://jqueryui.com
*
* Copyright jQuery Foundation and other contributors
* Released under the MIT license.
* http://jquery.org/license
*
* http://api.jqueryui.com/clip-effect/
*/
!function(e){"function"==typeof define&&define.amd?define(["jquery","./effect"],e):e(jQuery)}(function(d){return d.effects.effect.clip=function(e,t){var i,f=d(this),o=["position","top","bottom","left","right","height","width"],c="show"===d.effects.setMode(f,e.mode||"hide"),n="vertical"===(e.direction||"vertical"),s=n?"height":"width",r=n?"top":"left",a={};d.effects.save(f,o),f.show(),i=d.effects.createWrapper(f).css({overflow:"hidden"}),i=(n="IMG"===f[0].tagName?i:f)[s](),c&&(n.css(s,0),n.css(r,i/2)),a[s]=c?i:0,a[r]=c?0:i/2,n.animate(a,{queue:!1,duration:e.duration,easing:e.easing,complete:function(){c||f.hide(),d.effects.restore(f,o),d.effects.removeWrapper(f),t()}})}});