jqueryui-requirejs-rails 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (114) hide show
  1. data/LICENSE +22 -0
  2. data/README.md +3 -0
  3. data/Rakefile +27 -0
  4. data/app/assets/javascripts/jqueryui/accordion.js +575 -0
  5. data/app/assets/javascripts/jqueryui/autocomplete.js +613 -0
  6. data/app/assets/javascripts/jqueryui/button.js +422 -0
  7. data/app/assets/javascripts/jqueryui/core.js +323 -0
  8. data/app/assets/javascripts/jqueryui/datepicker-af.js +26 -0
  9. data/app/assets/javascripts/jqueryui/datepicker-ar-DZ.js +26 -0
  10. data/app/assets/javascripts/jqueryui/datepicker-ar.js +26 -0
  11. data/app/assets/javascripts/jqueryui/datepicker-az.js +26 -0
  12. data/app/assets/javascripts/jqueryui/datepicker-be.js +26 -0
  13. data/app/assets/javascripts/jqueryui/datepicker-bg.js +27 -0
  14. data/app/assets/javascripts/jqueryui/datepicker-bs.js +26 -0
  15. data/app/assets/javascripts/jqueryui/datepicker-ca.js +26 -0
  16. data/app/assets/javascripts/jqueryui/datepicker-cs.js +26 -0
  17. data/app/assets/javascripts/jqueryui/datepicker-cy-GB.js +26 -0
  18. data/app/assets/javascripts/jqueryui/datepicker-da.js +26 -0
  19. data/app/assets/javascripts/jqueryui/datepicker-de.js +26 -0
  20. data/app/assets/javascripts/jqueryui/datepicker-el.js +26 -0
  21. data/app/assets/javascripts/jqueryui/datepicker-en-AU.js +26 -0
  22. data/app/assets/javascripts/jqueryui/datepicker-en-GB.js +26 -0
  23. data/app/assets/javascripts/jqueryui/datepicker-en-NZ.js +26 -0
  24. data/app/assets/javascripts/jqueryui/datepicker-eo.js +26 -0
  25. data/app/assets/javascripts/jqueryui/datepicker-es.js +26 -0
  26. data/app/assets/javascripts/jqueryui/datepicker-et.js +26 -0
  27. data/app/assets/javascripts/jqueryui/datepicker-eu.js +26 -0
  28. data/app/assets/javascripts/jqueryui/datepicker-fa.js +62 -0
  29. data/app/assets/javascripts/jqueryui/datepicker-fi.js +26 -0
  30. data/app/assets/javascripts/jqueryui/datepicker-fo.js +26 -0
  31. data/app/assets/javascripts/jqueryui/datepicker-fr-CA.js +26 -0
  32. data/app/assets/javascripts/jqueryui/datepicker-fr-CH.js +26 -0
  33. data/app/assets/javascripts/jqueryui/datepicker-fr.js +28 -0
  34. data/app/assets/javascripts/jqueryui/datepicker-gl.js +26 -0
  35. data/app/assets/javascripts/jqueryui/datepicker-he.js +26 -0
  36. data/app/assets/javascripts/jqueryui/datepicker-hi.js +26 -0
  37. data/app/assets/javascripts/jqueryui/datepicker-hr.js +26 -0
  38. data/app/assets/javascripts/jqueryui/datepicker-hu.js +26 -0
  39. data/app/assets/javascripts/jqueryui/datepicker-hy.js +26 -0
  40. data/app/assets/javascripts/jqueryui/datepicker-id.js +26 -0
  41. data/app/assets/javascripts/jqueryui/datepicker-is.js +26 -0
  42. data/app/assets/javascripts/jqueryui/datepicker-it.js +26 -0
  43. data/app/assets/javascripts/jqueryui/datepicker-ja.js +26 -0
  44. data/app/assets/javascripts/jqueryui/datepicker-ka.js +24 -0
  45. data/app/assets/javascripts/jqueryui/datepicker-kk.js +26 -0
  46. data/app/assets/javascripts/jqueryui/datepicker-km.js +26 -0
  47. data/app/assets/javascripts/jqueryui/datepicker-ko.js +26 -0
  48. data/app/assets/javascripts/jqueryui/datepicker-ky.js +27 -0
  49. data/app/assets/javascripts/jqueryui/datepicker-lb.js +26 -0
  50. data/app/assets/javascripts/jqueryui/datepicker-lt.js +26 -0
  51. data/app/assets/javascripts/jqueryui/datepicker-lv.js +26 -0
  52. data/app/assets/javascripts/jqueryui/datepicker-mk.js +26 -0
  53. data/app/assets/javascripts/jqueryui/datepicker-ml.js +26 -0
  54. data/app/assets/javascripts/jqueryui/datepicker-ms.js +26 -0
  55. data/app/assets/javascripts/jqueryui/datepicker-nb.js +25 -0
  56. data/app/assets/javascripts/jqueryui/datepicker-nl-BE.js +26 -0
  57. data/app/assets/javascripts/jqueryui/datepicker-nl.js +26 -0
  58. data/app/assets/javascripts/jqueryui/datepicker-nn.js +25 -0
  59. data/app/assets/javascripts/jqueryui/datepicker-no.js +26 -0
  60. data/app/assets/javascripts/jqueryui/datepicker-pl.js +26 -0
  61. data/app/assets/javascripts/jqueryui/datepicker-pt-BR.js +26 -0
  62. data/app/assets/javascripts/jqueryui/datepicker-pt.js +25 -0
  63. data/app/assets/javascripts/jqueryui/datepicker-rm.js +24 -0
  64. data/app/assets/javascripts/jqueryui/datepicker-ro.js +29 -0
  65. data/app/assets/javascripts/jqueryui/datepicker-ru.js +26 -0
  66. data/app/assets/javascripts/jqueryui/datepicker-sk.js +26 -0
  67. data/app/assets/javascripts/jqueryui/datepicker-sl.js +27 -0
  68. data/app/assets/javascripts/jqueryui/datepicker-sq.js +26 -0
  69. data/app/assets/javascripts/jqueryui/datepicker-sr-SR.js +26 -0
  70. data/app/assets/javascripts/jqueryui/datepicker-sr.js +26 -0
  71. data/app/assets/javascripts/jqueryui/datepicker-sv.js +26 -0
  72. data/app/assets/javascripts/jqueryui/datepicker-ta.js +26 -0
  73. data/app/assets/javascripts/jqueryui/datepicker-th.js +26 -0
  74. data/app/assets/javascripts/jqueryui/datepicker-tj.js +26 -0
  75. data/app/assets/javascripts/jqueryui/datepicker-tr.js +26 -0
  76. data/app/assets/javascripts/jqueryui/datepicker-uk.js +27 -0
  77. data/app/assets/javascripts/jqueryui/datepicker-vi.js +26 -0
  78. data/app/assets/javascripts/jqueryui/datepicker-zh-CN.js +26 -0
  79. data/app/assets/javascripts/jqueryui/datepicker-zh-HK.js +26 -0
  80. data/app/assets/javascripts/jqueryui/datepicker-zh-TW.js +26 -0
  81. data/app/assets/javascripts/jqueryui/datepicker.js +2053 -0
  82. data/app/assets/javascripts/jqueryui/dialog.js +811 -0
  83. data/app/assets/javascripts/jqueryui/draggable.js +936 -0
  84. data/app/assets/javascripts/jqueryui/droppable.js +375 -0
  85. data/app/assets/javascripts/jqueryui/effect-blind.js +85 -0
  86. data/app/assets/javascripts/jqueryui/effect-bounce.js +116 -0
  87. data/app/assets/javascripts/jqueryui/effect-clip.js +70 -0
  88. data/app/assets/javascripts/jqueryui/effect-drop.js +68 -0
  89. data/app/assets/javascripts/jqueryui/effect-explode.js +100 -0
  90. data/app/assets/javascripts/jqueryui/effect-fade.js +33 -0
  91. data/app/assets/javascripts/jqueryui/effect-fold.js +79 -0
  92. data/app/assets/javascripts/jqueryui/effect-highlight.js +53 -0
  93. data/app/assets/javascripts/jqueryui/effect-pulsate.js +66 -0
  94. data/app/assets/javascripts/jqueryui/effect-scale.js +321 -0
  95. data/app/assets/javascripts/jqueryui/effect-shake.js +77 -0
  96. data/app/assets/javascripts/jqueryui/effect-slide.js +67 -0
  97. data/app/assets/javascripts/jqueryui/effect-transfer.js +50 -0
  98. data/app/assets/javascripts/jqueryui/effect.js +1292 -0
  99. data/app/assets/javascripts/jqueryui/menu.js +624 -0
  100. data/app/assets/javascripts/jqueryui/mouse.js +172 -0
  101. data/app/assets/javascripts/jqueryui/position.js +500 -0
  102. data/app/assets/javascripts/jqueryui/progressbar.js +148 -0
  103. data/app/assets/javascripts/jqueryui/resizable.js +971 -0
  104. data/app/assets/javascripts/jqueryui/selectable.js +280 -0
  105. data/app/assets/javascripts/jqueryui/slider.js +675 -0
  106. data/app/assets/javascripts/jqueryui/sortable.js +1285 -0
  107. data/app/assets/javascripts/jqueryui/spinner.js +496 -0
  108. data/app/assets/javascripts/jqueryui/tabs.js +849 -0
  109. data/app/assets/javascripts/jqueryui/tooltip.js +405 -0
  110. data/app/assets/javascripts/jqueryui/widget.js +524 -0
  111. data/lib/jqueryui-requirejs-rails.rb +4 -0
  112. data/lib/jqueryui-requirejs-rails/engine.rb +4 -0
  113. data/lib/jqueryui-requirejs-rails/version.rb +3 -0
  114. metadata +196 -0
@@ -0,0 +1,116 @@
1
+ define(['jquery','./effect'], function (jQuery) {
2
+ /*!
3
+ * jQuery UI Effects Bounce 1.10.2
4
+ * http://jqueryui.com
5
+ *
6
+ * Copyright 2013 jQuery Foundation and other contributors
7
+ * Released under the MIT license.
8
+ * http://jquery.org/license
9
+ *
10
+ * http://api.jqueryui.com/bounce-effect/
11
+ *
12
+ * Depends:
13
+ * jquery.ui.effect.js
14
+ */
15
+ (function( $, undefined ) {
16
+
17
+ $.effects.effect.bounce = function( o, done ) {
18
+ var el = $( this ),
19
+ props = [ "position", "top", "bottom", "left", "right", "height", "width" ],
20
+
21
+ // defaults:
22
+ mode = $.effects.setMode( el, o.mode || "effect" ),
23
+ hide = mode === "hide",
24
+ show = mode === "show",
25
+ direction = o.direction || "up",
26
+ distance = o.distance,
27
+ times = o.times || 5,
28
+
29
+ // number of internal animations
30
+ anims = times * 2 + ( show || hide ? 1 : 0 ),
31
+ speed = o.duration / anims,
32
+ easing = o.easing,
33
+
34
+ // utility:
35
+ ref = ( direction === "up" || direction === "down" ) ? "top" : "left",
36
+ motion = ( direction === "up" || direction === "left" ),
37
+ i,
38
+ upAnim,
39
+ downAnim,
40
+
41
+ // we will need to re-assemble the queue to stack our animations in place
42
+ queue = el.queue(),
43
+ queuelen = queue.length;
44
+
45
+ // Avoid touching opacity to prevent clearType and PNG issues in IE
46
+ if ( show || hide ) {
47
+ props.push( "opacity" );
48
+ }
49
+
50
+ $.effects.save( el, props );
51
+ el.show();
52
+ $.effects.createWrapper( el ); // Create Wrapper
53
+
54
+ // default distance for the BIGGEST bounce is the outer Distance / 3
55
+ if ( !distance ) {
56
+ distance = el[ ref === "top" ? "outerHeight" : "outerWidth" ]() / 3;
57
+ }
58
+
59
+ if ( show ) {
60
+ downAnim = { opacity: 1 };
61
+ downAnim[ ref ] = 0;
62
+
63
+ // if we are showing, force opacity 0 and set the initial position
64
+ // then do the "first" animation
65
+ el.css( "opacity", 0 )
66
+ .css( ref, motion ? -distance * 2 : distance * 2 )
67
+ .animate( downAnim, speed, easing );
68
+ }
69
+
70
+ // start at the smallest distance if we are hiding
71
+ if ( hide ) {
72
+ distance = distance / Math.pow( 2, times - 1 );
73
+ }
74
+
75
+ downAnim = {};
76
+ downAnim[ ref ] = 0;
77
+ // Bounces up/down/left/right then back to 0 -- times * 2 animations happen here
78
+ for ( i = 0; i < times; i++ ) {
79
+ upAnim = {};
80
+ upAnim[ ref ] = ( motion ? "-=" : "+=" ) + distance;
81
+
82
+ el.animate( upAnim, speed, easing )
83
+ .animate( downAnim, speed, easing );
84
+
85
+ distance = hide ? distance * 2 : distance / 2;
86
+ }
87
+
88
+ // Last Bounce when Hiding
89
+ if ( hide ) {
90
+ upAnim = { opacity: 0 };
91
+ upAnim[ ref ] = ( motion ? "-=" : "+=" ) + distance;
92
+
93
+ el.animate( upAnim, speed, easing );
94
+ }
95
+
96
+ el.queue(function() {
97
+ if ( hide ) {
98
+ el.hide();
99
+ }
100
+ $.effects.restore( el, props );
101
+ $.effects.removeWrapper( el );
102
+ done();
103
+ });
104
+
105
+ // inject all the animations we just queued to be first in line (after "inprogress")
106
+ if ( queuelen > 1) {
107
+ queue.splice.apply( queue,
108
+ [ 1, 0 ].concat( queue.splice( queuelen, anims + 1 ) ) );
109
+ }
110
+ el.dequeue();
111
+
112
+ };
113
+
114
+ })(jQuery);
115
+
116
+ });
@@ -0,0 +1,70 @@
1
+ define(['jquery','./effect'], function (jQuery) {
2
+ /*!
3
+ * jQuery UI Effects Clip 1.10.2
4
+ * http://jqueryui.com
5
+ *
6
+ * Copyright 2013 jQuery Foundation and other contributors
7
+ * Released under the MIT license.
8
+ * http://jquery.org/license
9
+ *
10
+ * http://api.jqueryui.com/clip-effect/
11
+ *
12
+ * Depends:
13
+ * jquery.ui.effect.js
14
+ */
15
+ (function( $, undefined ) {
16
+
17
+ $.effects.effect.clip = function( o, done ) {
18
+ // Create element
19
+ var el = $( this ),
20
+ props = [ "position", "top", "bottom", "left", "right", "height", "width" ],
21
+ mode = $.effects.setMode( el, o.mode || "hide" ),
22
+ show = mode === "show",
23
+ direction = o.direction || "vertical",
24
+ vert = direction === "vertical",
25
+ size = vert ? "height" : "width",
26
+ position = vert ? "top" : "left",
27
+ animation = {},
28
+ wrapper, animate, distance;
29
+
30
+ // Save & Show
31
+ $.effects.save( el, props );
32
+ el.show();
33
+
34
+ // Create Wrapper
35
+ wrapper = $.effects.createWrapper( el ).css({
36
+ overflow: "hidden"
37
+ });
38
+ animate = ( el[0].tagName === "IMG" ) ? wrapper : el;
39
+ distance = animate[ size ]();
40
+
41
+ // Shift
42
+ if ( show ) {
43
+ animate.css( size, 0 );
44
+ animate.css( position, distance / 2 );
45
+ }
46
+
47
+ // Create Animation Object:
48
+ animation[ size ] = show ? distance : 0;
49
+ animation[ position ] = show ? 0 : distance / 2;
50
+
51
+ // Animate
52
+ animate.animate( animation, {
53
+ queue: false,
54
+ duration: o.duration,
55
+ easing: o.easing,
56
+ complete: function() {
57
+ if ( !show ) {
58
+ el.hide();
59
+ }
60
+ $.effects.restore( el, props );
61
+ $.effects.removeWrapper( el );
62
+ done();
63
+ }
64
+ });
65
+
66
+ };
67
+
68
+ })(jQuery);
69
+
70
+ });
@@ -0,0 +1,68 @@
1
+ define(['jquery','./effect'], function (jQuery) {
2
+ /*!
3
+ * jQuery UI Effects Drop 1.10.2
4
+ * http://jqueryui.com
5
+ *
6
+ * Copyright 2013 jQuery Foundation and other contributors
7
+ * Released under the MIT license.
8
+ * http://jquery.org/license
9
+ *
10
+ * http://api.jqueryui.com/drop-effect/
11
+ *
12
+ * Depends:
13
+ * jquery.ui.effect.js
14
+ */
15
+ (function( $, undefined ) {
16
+
17
+ $.effects.effect.drop = function( o, done ) {
18
+
19
+ var el = $( this ),
20
+ props = [ "position", "top", "bottom", "left", "right", "opacity", "height", "width" ],
21
+ mode = $.effects.setMode( el, o.mode || "hide" ),
22
+ show = mode === "show",
23
+ direction = o.direction || "left",
24
+ ref = ( direction === "up" || direction === "down" ) ? "top" : "left",
25
+ motion = ( direction === "up" || direction === "left" ) ? "pos" : "neg",
26
+ animation = {
27
+ opacity: show ? 1 : 0
28
+ },
29
+ distance;
30
+
31
+ // Adjust
32
+ $.effects.save( el, props );
33
+ el.show();
34
+ $.effects.createWrapper( el );
35
+
36
+ distance = o.distance || el[ ref === "top" ? "outerHeight": "outerWidth" ]( true ) / 2;
37
+
38
+ if ( show ) {
39
+ el
40
+ .css( "opacity", 0 )
41
+ .css( ref, motion === "pos" ? -distance : distance );
42
+ }
43
+
44
+ // Animation
45
+ animation[ ref ] = ( show ?
46
+ ( motion === "pos" ? "+=" : "-=" ) :
47
+ ( motion === "pos" ? "-=" : "+=" ) ) +
48
+ distance;
49
+
50
+ // Animate
51
+ el.animate( animation, {
52
+ queue: false,
53
+ duration: o.duration,
54
+ easing: o.easing,
55
+ complete: function() {
56
+ if ( mode === "hide" ) {
57
+ el.hide();
58
+ }
59
+ $.effects.restore( el, props );
60
+ $.effects.removeWrapper( el );
61
+ done();
62
+ }
63
+ });
64
+ };
65
+
66
+ })(jQuery);
67
+
68
+ });
@@ -0,0 +1,100 @@
1
+ define(['jquery','./effect'], function (jQuery) {
2
+ /*!
3
+ * jQuery UI Effects Explode 1.10.2
4
+ * http://jqueryui.com
5
+ *
6
+ * Copyright 2013 jQuery Foundation and other contributors
7
+ * Released under the MIT license.
8
+ * http://jquery.org/license
9
+ *
10
+ * http://api.jqueryui.com/explode-effect/
11
+ *
12
+ * Depends:
13
+ * jquery.ui.effect.js
14
+ */
15
+ (function( $, undefined ) {
16
+
17
+ $.effects.effect.explode = function( o, done ) {
18
+
19
+ var rows = o.pieces ? Math.round( Math.sqrt( o.pieces ) ) : 3,
20
+ cells = rows,
21
+ el = $( this ),
22
+ mode = $.effects.setMode( el, o.mode || "hide" ),
23
+ show = mode === "show",
24
+
25
+ // show and then visibility:hidden the element before calculating offset
26
+ offset = el.show().css( "visibility", "hidden" ).offset(),
27
+
28
+ // width and height of a piece
29
+ width = Math.ceil( el.outerWidth() / cells ),
30
+ height = Math.ceil( el.outerHeight() / rows ),
31
+ pieces = [],
32
+
33
+ // loop
34
+ i, j, left, top, mx, my;
35
+
36
+ // children animate complete:
37
+ function childComplete() {
38
+ pieces.push( this );
39
+ if ( pieces.length === rows * cells ) {
40
+ animComplete();
41
+ }
42
+ }
43
+
44
+ // clone the element for each row and cell.
45
+ for( i = 0; i < rows ; i++ ) { // ===>
46
+ top = offset.top + i * height;
47
+ my = i - ( rows - 1 ) / 2 ;
48
+
49
+ for( j = 0; j < cells ; j++ ) { // |||
50
+ left = offset.left + j * width;
51
+ mx = j - ( cells - 1 ) / 2 ;
52
+
53
+ // Create a clone of the now hidden main element that will be absolute positioned
54
+ // within a wrapper div off the -left and -top equal to size of our pieces
55
+ el
56
+ .clone()
57
+ .appendTo( "body" )
58
+ .wrap( "<div></div>" )
59
+ .css({
60
+ position: "absolute",
61
+ visibility: "visible",
62
+ left: -j * width,
63
+ top: -i * height
64
+ })
65
+
66
+ // select the wrapper - make it overflow: hidden and absolute positioned based on
67
+ // where the original was located +left and +top equal to the size of pieces
68
+ .parent()
69
+ .addClass( "ui-effects-explode" )
70
+ .css({
71
+ position: "absolute",
72
+ overflow: "hidden",
73
+ width: width,
74
+ height: height,
75
+ left: left + ( show ? mx * width : 0 ),
76
+ top: top + ( show ? my * height : 0 ),
77
+ opacity: show ? 0 : 1
78
+ }).animate({
79
+ left: left + ( show ? 0 : mx * width ),
80
+ top: top + ( show ? 0 : my * height ),
81
+ opacity: show ? 1 : 0
82
+ }, o.duration || 500, o.easing, childComplete );
83
+ }
84
+ }
85
+
86
+ function animComplete() {
87
+ el.css({
88
+ visibility: "visible"
89
+ });
90
+ $( pieces ).remove();
91
+ if ( !show ) {
92
+ el.hide();
93
+ }
94
+ done();
95
+ }
96
+ };
97
+
98
+ })(jQuery);
99
+
100
+ });
@@ -0,0 +1,33 @@
1
+ define(['jquery','./effect'], function (jQuery) {
2
+ /*!
3
+ * jQuery UI Effects Fade 1.10.2
4
+ * http://jqueryui.com
5
+ *
6
+ * Copyright 2013 jQuery Foundation and other contributors
7
+ * Released under the MIT license.
8
+ * http://jquery.org/license
9
+ *
10
+ * http://api.jqueryui.com/fade-effect/
11
+ *
12
+ * Depends:
13
+ * jquery.ui.effect.js
14
+ */
15
+ (function( $, undefined ) {
16
+
17
+ $.effects.effect.fade = function( o, done ) {
18
+ var el = $( this ),
19
+ mode = $.effects.setMode( el, o.mode || "toggle" );
20
+
21
+ el.animate({
22
+ opacity: mode
23
+ }, {
24
+ queue: false,
25
+ duration: o.duration,
26
+ easing: o.easing,
27
+ complete: done
28
+ });
29
+ };
30
+
31
+ })( jQuery );
32
+
33
+ });
@@ -0,0 +1,79 @@
1
+ define(['jquery','./effect'], function (jQuery) {
2
+ /*!
3
+ * jQuery UI Effects Fold 1.10.2
4
+ * http://jqueryui.com
5
+ *
6
+ * Copyright 2013 jQuery Foundation and other contributors
7
+ * Released under the MIT license.
8
+ * http://jquery.org/license
9
+ *
10
+ * http://api.jqueryui.com/fold-effect/
11
+ *
12
+ * Depends:
13
+ * jquery.ui.effect.js
14
+ */
15
+ (function( $, undefined ) {
16
+
17
+ $.effects.effect.fold = function( o, done ) {
18
+
19
+ // Create element
20
+ var el = $( this ),
21
+ props = [ "position", "top", "bottom", "left", "right", "height", "width" ],
22
+ mode = $.effects.setMode( el, o.mode || "hide" ),
23
+ show = mode === "show",
24
+ hide = mode === "hide",
25
+ size = o.size || 15,
26
+ percent = /([0-9]+)%/.exec( size ),
27
+ horizFirst = !!o.horizFirst,
28
+ widthFirst = show !== horizFirst,
29
+ ref = widthFirst ? [ "width", "height" ] : [ "height", "width" ],
30
+ duration = o.duration / 2,
31
+ wrapper, distance,
32
+ animation1 = {},
33
+ animation2 = {};
34
+
35
+ $.effects.save( el, props );
36
+ el.show();
37
+
38
+ // Create Wrapper
39
+ wrapper = $.effects.createWrapper( el ).css({
40
+ overflow: "hidden"
41
+ });
42
+ distance = widthFirst ?
43
+ [ wrapper.width(), wrapper.height() ] :
44
+ [ wrapper.height(), wrapper.width() ];
45
+
46
+ if ( percent ) {
47
+ size = parseInt( percent[ 1 ], 10 ) / 100 * distance[ hide ? 0 : 1 ];
48
+ }
49
+ if ( show ) {
50
+ wrapper.css( horizFirst ? {
51
+ height: 0,
52
+ width: size
53
+ } : {
54
+ height: size,
55
+ width: 0
56
+ });
57
+ }
58
+
59
+ // Animation
60
+ animation1[ ref[ 0 ] ] = show ? distance[ 0 ] : size;
61
+ animation2[ ref[ 1 ] ] = show ? distance[ 1 ] : 0;
62
+
63
+ // Animate
64
+ wrapper
65
+ .animate( animation1, duration, o.easing )
66
+ .animate( animation2, duration, o.easing, function() {
67
+ if ( hide ) {
68
+ el.hide();
69
+ }
70
+ $.effects.restore( el, props );
71
+ $.effects.removeWrapper( el );
72
+ done();
73
+ });
74
+
75
+ };
76
+
77
+ })(jQuery);
78
+
79
+ });