mirror of
https://github.com/WordPress/WordPress.git
synced 2024-07-07 04:05:13 +02:00
This includes an update to the underlying version of uglify which causes all of the JS to be modified. See #34177 Built from https://develop.svn.wordpress.org/trunk@35538 git-svn-id: http://core.svn.wordpress.org/trunk@35502 1a063a9b-81f0-0310-95a4-ce76da25c4cd
19 lines
1.0 KiB
JavaScript
19 lines
1.0 KiB
JavaScript
/*!
|
|
* jQuery UI Effects Slide 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/slide-effect/
|
|
*/
|
|
!function(a){"function"==typeof define&&define.amd?
|
|
// AMD. Register as an anonymous module.
|
|
define(["jquery","./effect"],a):
|
|
// Browser globals
|
|
a(jQuery)}(function(a){return a.effects.effect.slide=function(b,c){
|
|
// Create element
|
|
var d,e=a(this),f=["position","top","bottom","left","right","width","height"],g=a.effects.setMode(e,b.mode||"show"),h="show"===g,i=b.direction||"left",j="up"===i||"down"===i?"top":"left",k="up"===i||"left"===i,l={};
|
|
// Adjust
|
|
a.effects.save(e,f),e.show(),d=b.distance||e["top"===j?"outerHeight":"outerWidth"](!0),a.effects.createWrapper(e).css({overflow:"hidden"}),h&&e.css(j,k?isNaN(d)?"-"+d:-d:d),l[j]=(h?k?"+=":"-=":k?"-=":"+=")+d,e.animate(l,{queue:!1,duration:b.duration,easing:b.easing,complete:function(){"hide"===g&&e.hide(),a.effects.restore(e,f),a.effects.removeWrapper(e),c()}})}}); |