jquery-ui-rails 6.0.1 → 8.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (170) hide show
  1. checksums.yaml +5 -5
  2. data/History.md +11 -2
  3. data/README.md +12 -12
  4. data/Rakefile +8 -3
  5. data/VERSIONS.md +2 -0
  6. data/app/assets/images/jquery-ui/ui-icons_444444_256x240.png +0 -0
  7. data/app/assets/images/jquery-ui/ui-icons_555555_256x240.png +0 -0
  8. data/app/assets/images/jquery-ui/ui-icons_777620_256x240.png +0 -0
  9. data/app/assets/images/jquery-ui/ui-icons_777777_256x240.png +0 -0
  10. data/app/assets/images/jquery-ui/ui-icons_cc0000_256x240.png +0 -0
  11. data/app/assets/images/jquery-ui/ui-icons_ffffff_256x240.png +0 -0
  12. data/app/assets/javascripts/jquery-ui/data.js +16 -18
  13. data/app/assets/javascripts/jquery-ui/disable-selection.js +10 -7
  14. data/app/assets/javascripts/jquery-ui/effect.js +69 -752
  15. data/app/assets/javascripts/jquery-ui/effects/effect-blind.js +11 -8
  16. data/app/assets/javascripts/jquery-ui/effects/effect-bounce.js +11 -8
  17. data/app/assets/javascripts/jquery-ui/effects/effect-clip.js +11 -8
  18. data/app/assets/javascripts/jquery-ui/effects/effect-drop.js +11 -8
  19. data/app/assets/javascripts/jquery-ui/effects/effect-explode.js +13 -10
  20. data/app/assets/javascripts/jquery-ui/effects/effect-fade.js +11 -8
  21. data/app/assets/javascripts/jquery-ui/effects/effect-fold.js +11 -8
  22. data/app/assets/javascripts/jquery-ui/effects/effect-highlight.js +11 -8
  23. data/app/assets/javascripts/jquery-ui/effects/effect-puff.js +11 -8
  24. data/app/assets/javascripts/jquery-ui/effects/effect-pulsate.js +11 -8
  25. data/app/assets/javascripts/jquery-ui/effects/effect-scale.js +11 -8
  26. data/app/assets/javascripts/jquery-ui/effects/effect-shake.js +11 -8
  27. data/app/assets/javascripts/jquery-ui/effects/effect-size.js +13 -8
  28. data/app/assets/javascripts/jquery-ui/effects/effect-slide.js +11 -8
  29. data/app/assets/javascripts/jquery-ui/effects/effect-transfer.js +12 -9
  30. data/app/assets/javascripts/jquery-ui/focusable.js +13 -20
  31. data/app/assets/javascripts/jquery-ui/form-reset-mixin.js +11 -10
  32. data/app/assets/javascripts/jquery-ui/i18n/datepicker-af.js +8 -5
  33. data/app/assets/javascripts/jquery-ui/i18n/datepicker-ar-DZ.js +8 -5
  34. data/app/assets/javascripts/jquery-ui/i18n/datepicker-ar.js +7 -4
  35. data/app/assets/javascripts/jquery-ui/i18n/datepicker-az.js +14 -11
  36. data/app/assets/javascripts/jquery-ui/i18n/datepicker-be.js +14 -11
  37. data/app/assets/javascripts/jquery-ui/i18n/datepicker-bg.js +15 -12
  38. data/app/assets/javascripts/jquery-ui/i18n/datepicker-bs.js +14 -11
  39. data/app/assets/javascripts/jquery-ui/i18n/datepicker-ca.js +12 -9
  40. data/app/assets/javascripts/jquery-ui/i18n/datepicker-cs.js +12 -9
  41. data/app/assets/javascripts/jquery-ui/i18n/datepicker-cy-GB.js +8 -5
  42. data/app/assets/javascripts/jquery-ui/i18n/datepicker-da.js +15 -12
  43. data/app/assets/javascripts/jquery-ui/i18n/datepicker-de-AT.js +41 -0
  44. data/app/assets/javascripts/jquery-ui/i18n/datepicker-de.js +14 -11
  45. data/app/assets/javascripts/jquery-ui/i18n/datepicker-el.js +13 -10
  46. data/app/assets/javascripts/jquery-ui/i18n/datepicker-en-AU.js +8 -5
  47. data/app/assets/javascripts/jquery-ui/i18n/datepicker-en-GB.js +8 -5
  48. data/app/assets/javascripts/jquery-ui/i18n/datepicker-en-NZ.js +8 -5
  49. data/app/assets/javascripts/jquery-ui/i18n/datepicker-eo.js +14 -11
  50. data/app/assets/javascripts/jquery-ui/i18n/datepicker-es.js +14 -11
  51. data/app/assets/javascripts/jquery-ui/i18n/datepicker-et.js +8 -5
  52. data/app/assets/javascripts/jquery-ui/i18n/datepicker-eu.js +14 -11
  53. data/app/assets/javascripts/jquery-ui/i18n/datepicker-fa.js +8 -5
  54. data/app/assets/javascripts/jquery-ui/i18n/datepicker-fi.js +14 -11
  55. data/app/assets/javascripts/jquery-ui/i18n/datepicker-fo.js +13 -10
  56. data/app/assets/javascripts/jquery-ui/i18n/datepicker-fr-CA.js +5 -2
  57. data/app/assets/javascripts/jquery-ui/i18n/datepicker-fr-CH.js +7 -4
  58. data/app/assets/javascripts/jquery-ui/i18n/datepicker-fr.js +6 -3
  59. data/app/assets/javascripts/jquery-ui/i18n/datepicker-gl.js +14 -11
  60. data/app/assets/javascripts/jquery-ui/i18n/datepicker-he.js +14 -11
  61. data/app/assets/javascripts/jquery-ui/i18n/datepicker-hi.js +7 -4
  62. data/app/assets/javascripts/jquery-ui/i18n/datepicker-hr.js +14 -11
  63. data/app/assets/javascripts/jquery-ui/i18n/datepicker-hu.js +9 -6
  64. data/app/assets/javascripts/jquery-ui/i18n/datepicker-hy.js +14 -11
  65. data/app/assets/javascripts/jquery-ui/i18n/datepicker-id.js +16 -12
  66. data/app/assets/javascripts/jquery-ui/i18n/datepicker-is.js +13 -10
  67. data/app/assets/javascripts/jquery-ui/i18n/datepicker-it-CH.js +14 -11
  68. data/app/assets/javascripts/jquery-ui/i18n/datepicker-it.js +14 -11
  69. data/app/assets/javascripts/jquery-ui/i18n/datepicker-ja.js +14 -11
  70. data/app/assets/javascripts/jquery-ui/i18n/datepicker-ka.js +11 -8
  71. data/app/assets/javascripts/jquery-ui/i18n/datepicker-kk.js +14 -11
  72. data/app/assets/javascripts/jquery-ui/i18n/datepicker-km.js +9 -6
  73. data/app/assets/javascripts/jquery-ui/i18n/datepicker-ko.js +12 -9
  74. data/app/assets/javascripts/jquery-ui/i18n/datepicker-ky.js +12 -9
  75. data/app/assets/javascripts/jquery-ui/i18n/datepicker-lb.js +8 -5
  76. data/app/assets/javascripts/jquery-ui/i18n/datepicker-lt.js +13 -10
  77. data/app/assets/javascripts/jquery-ui/i18n/datepicker-lv.js +11 -8
  78. data/app/assets/javascripts/jquery-ui/i18n/datepicker-mk.js +14 -11
  79. data/app/assets/javascripts/jquery-ui/i18n/datepicker-ml.js +8 -5
  80. data/app/assets/javascripts/jquery-ui/i18n/datepicker-ms.js +14 -11
  81. data/app/assets/javascripts/jquery-ui/i18n/datepicker-nb.js +11 -8
  82. data/app/assets/javascripts/jquery-ui/i18n/datepicker-nl-BE.js +7 -4
  83. data/app/assets/javascripts/jquery-ui/i18n/datepicker-nl.js +8 -5
  84. data/app/assets/javascripts/jquery-ui/i18n/datepicker-nn.js +11 -8
  85. data/app/assets/javascripts/jquery-ui/i18n/datepicker-no.js +11 -8
  86. data/app/assets/javascripts/jquery-ui/i18n/datepicker-pl.js +14 -11
  87. data/app/assets/javascripts/jquery-ui/i18n/datepicker-pt-BR.js +13 -10
  88. data/app/assets/javascripts/jquery-ui/i18n/datepicker-pt.js +12 -9
  89. data/app/assets/javascripts/jquery-ui/i18n/datepicker-rm.js +10 -7
  90. data/app/assets/javascripts/jquery-ui/i18n/datepicker-ro.js +10 -7
  91. data/app/assets/javascripts/jquery-ui/i18n/datepicker-ru.js +14 -11
  92. data/app/assets/javascripts/jquery-ui/i18n/datepicker-sk.js +14 -11
  93. data/app/assets/javascripts/jquery-ui/i18n/datepicker-sl.js +14 -11
  94. data/app/assets/javascripts/jquery-ui/i18n/datepicker-sq.js +14 -11
  95. data/app/assets/javascripts/jquery-ui/i18n/datepicker-sr-SR.js +14 -11
  96. data/app/assets/javascripts/jquery-ui/i18n/datepicker-sr.js +14 -11
  97. data/app/assets/javascripts/jquery-ui/i18n/datepicker-sv.js +14 -11
  98. data/app/assets/javascripts/jquery-ui/i18n/datepicker-ta.js +10 -7
  99. data/app/assets/javascripts/jquery-ui/i18n/datepicker-th.js +14 -11
  100. data/app/assets/javascripts/jquery-ui/i18n/datepicker-tj.js +14 -11
  101. data/app/assets/javascripts/jquery-ui/i18n/datepicker-tr.js +14 -11
  102. data/app/assets/javascripts/jquery-ui/i18n/datepicker-uk.js +14 -11
  103. data/app/assets/javascripts/jquery-ui/i18n/datepicker-vi.js +7 -4
  104. data/app/assets/javascripts/jquery-ui/i18n/datepicker-zh-CN.js +14 -11
  105. data/app/assets/javascripts/jquery-ui/i18n/datepicker-zh-HK.js +14 -11
  106. data/app/assets/javascripts/jquery-ui/i18n/datepicker-zh-TW.js +15 -12
  107. data/app/assets/javascripts/jquery-ui/jquery-patch.js +58 -0
  108. data/app/assets/javascripts/jquery-ui/jquery-var-for-color.js +24 -0
  109. data/app/assets/javascripts/jquery-ui/keycode.js +11 -7
  110. data/app/assets/javascripts/jquery-ui/labels.js +18 -13
  111. data/app/assets/javascripts/jquery-ui/plugin.js +5 -2
  112. data/app/assets/javascripts/jquery-ui/position.js +30 -17
  113. data/app/assets/javascripts/jquery-ui/scroll-parent.js +10 -7
  114. data/app/assets/javascripts/jquery-ui/tabbable.js +11 -8
  115. data/app/assets/javascripts/jquery-ui/unique-id.js +10 -7
  116. data/app/assets/javascripts/jquery-ui/vendor/jquery-color/jquery.color.js +691 -0
  117. data/app/assets/javascripts/jquery-ui/version.js +6 -3
  118. data/app/assets/javascripts/jquery-ui/widget.js +56 -30
  119. data/app/assets/javascripts/jquery-ui/widgets/accordion.js +32 -23
  120. data/app/assets/javascripts/jquery-ui/widgets/autocomplete.js +31 -74
  121. data/app/assets/javascripts/jquery-ui/widgets/button.js +91 -28
  122. data/app/assets/javascripts/jquery-ui/widgets/checkboxradio.js +27 -24
  123. data/app/assets/javascripts/jquery-ui/widgets/controlgroup.js +15 -11
  124. data/app/assets/javascripts/jquery-ui/widgets/datepicker.js +185 -68
  125. data/app/assets/javascripts/jquery-ui/widgets/dialog.js +57 -54
  126. data/app/assets/javascripts/jquery-ui/widgets/draggable.js +30 -25
  127. data/app/assets/javascripts/jquery-ui/widgets/droppable.js +25 -19
  128. data/app/assets/javascripts/jquery-ui/widgets/menu.js +90 -52
  129. data/app/assets/javascripts/jquery-ui/widgets/mouse.js +36 -40
  130. data/app/assets/javascripts/jquery-ui/widgets/progressbar.js +14 -11
  131. data/app/assets/javascripts/jquery-ui/widgets/resizable.js +116 -42
  132. data/app/assets/javascripts/jquery-ui/widgets/selectable.js +18 -11
  133. data/app/assets/javascripts/jquery-ui/widgets/selectmenu.js +30 -52
  134. data/app/assets/javascripts/jquery-ui/widgets/slider.js +15 -12
  135. data/app/assets/javascripts/jquery-ui/widgets/sortable.js +193 -140
  136. data/app/assets/javascripts/jquery-ui/widgets/spinner.js +28 -45
  137. data/app/assets/javascripts/jquery-ui/widgets/tabs.js +32 -66
  138. data/app/assets/javascripts/jquery-ui/widgets/tooltip.js +38 -36
  139. data/app/assets/javascripts/jquery-ui.js +3 -7
  140. data/app/assets/stylesheets/jquery-ui/accordion.css +5 -5
  141. data/app/assets/stylesheets/jquery-ui/all.css +5 -5
  142. data/app/assets/stylesheets/jquery-ui/autocomplete.css +5 -5
  143. data/app/assets/stylesheets/jquery-ui/base.css +5 -5
  144. data/app/assets/stylesheets/jquery-ui/button.css +6 -11
  145. data/app/assets/stylesheets/jquery-ui/checkboxradio.css +5 -5
  146. data/app/assets/stylesheets/jquery-ui/controlgroup.css +5 -8
  147. data/app/assets/stylesheets/jquery-ui/core.css +5 -9
  148. data/app/assets/stylesheets/jquery-ui/datepicker.css +5 -5
  149. data/app/assets/stylesheets/jquery-ui/dialog.css +5 -5
  150. data/app/assets/stylesheets/jquery-ui/draggable.css +4 -5
  151. data/app/assets/stylesheets/jquery-ui/menu.css +5 -7
  152. data/app/assets/stylesheets/jquery-ui/progressbar.css +5 -6
  153. data/app/assets/stylesheets/jquery-ui/resizable.css +4 -5
  154. data/app/assets/stylesheets/jquery-ui/selectable.css +4 -5
  155. data/app/assets/stylesheets/jquery-ui/selectmenu.css +5 -5
  156. data/app/assets/stylesheets/jquery-ui/slider.css +6 -13
  157. data/app/assets/stylesheets/jquery-ui/sortable.css +4 -5
  158. data/app/assets/stylesheets/jquery-ui/spinner.css +5 -5
  159. data/app/assets/stylesheets/jquery-ui/tabs.css +5 -5
  160. data/app/assets/stylesheets/jquery-ui/theme.css.erb +10 -14
  161. data/app/assets/stylesheets/jquery-ui/tooltip.css +5 -5
  162. data/lib/jquery/ui/rails/version.rb +2 -2
  163. metadata +11 -15
  164. data/app/assets/javascripts/jquery-ui/core.js +0 -15
  165. data/app/assets/javascripts/jquery-ui/escape-selector.js +0 -23
  166. data/app/assets/javascripts/jquery-ui/form.js +0 -22
  167. data/app/assets/javascripts/jquery-ui/ie.js +0 -17
  168. data/app/assets/javascripts/jquery-ui/jquery-1-7.js +0 -91
  169. data/app/assets/javascripts/jquery-ui/safe-active-element.js +0 -42
  170. data/app/assets/javascripts/jquery-ui/safe-blur.js +0 -23
@@ -1,723 +1,52 @@
1
+ //= require jquery-ui/jquery-var-for-color
2
+ //= require jquery-ui/vendor/jquery-color/jquery.color
1
3
  //= require jquery-ui/version
2
4
 
3
5
  /*!
4
- * jQuery UI Effects 1.12.1
5
- * http://jqueryui.com
6
+ * jQuery UI Effects 1.14.1
7
+ * https://jqueryui.com
6
8
  *
7
- * Copyright jQuery Foundation and other contributors
9
+ * Copyright OpenJS Foundation and other contributors
8
10
  * Released under the MIT license.
9
- * http://jquery.org/license
11
+ * https://jquery.org/license
10
12
  */
11
13
 
12
14
  //>>label: Effects Core
13
15
  //>>group: Effects
14
- // jscs:disable maximumLineLength
16
+ /* eslint-disable max-len */
15
17
  //>>description: Extends the internal jQuery effects. Includes morphing and easing. Required by all other effects.
16
- // jscs:enable maximumLineLength
17
- //>>docs: http://api.jqueryui.com/category/effects-core/
18
- //>>demos: http://jqueryui.com/effect/
18
+ /* eslint-enable max-len */
19
+ //>>docs: https://api.jqueryui.com/category/effects-core/
20
+ //>>demos: https://jqueryui.com/effect/
19
21
 
20
22
  ( function( factory ) {
23
+ "use strict";
24
+
21
25
  if ( typeof define === "function" && define.amd ) {
22
26
 
23
27
  // AMD. Register as an anonymous module.
24
- define( [ "jquery", "./version" ], factory );
28
+ define( [
29
+ "jquery",
30
+ "./jquery-var-for-color",
31
+ "./vendor/jquery-color/jquery.color",
32
+ "./version"
33
+ ], factory );
25
34
  } else {
26
35
 
27
36
  // Browser globals
28
37
  factory( jQuery );
29
38
  }
30
- }( function( $ ) {
39
+ } )( function( $ ) {
40
+ "use strict";
31
41
 
32
42
  var dataSpace = "ui-effects-",
33
43
  dataSpaceStyle = "ui-effects-style",
34
- dataSpaceAnimated = "ui-effects-animated",
35
-
36
- // Create a local jQuery because jQuery Color relies on it and the
37
- // global may not exist with AMD and a custom build (#10199)
38
- jQuery = $;
44
+ dataSpaceAnimated = "ui-effects-animated";
39
45
 
40
46
  $.effects = {
41
47
  effect: {}
42
48
  };
43
49
 
44
- /*!
45
- * jQuery Color Animations v2.1.2
46
- * https://github.com/jquery/jquery-color
47
- *
48
- * Copyright 2014 jQuery Foundation and other contributors
49
- * Released under the MIT license.
50
- * http://jquery.org/license
51
- *
52
- * Date: Wed Jan 16 08:47:09 2013 -0600
53
- */
54
- ( function( jQuery, undefined ) {
55
-
56
- var stepHooks = "backgroundColor borderBottomColor borderLeftColor borderRightColor " +
57
- "borderTopColor color columnRuleColor outlineColor textDecorationColor textEmphasisColor",
58
-
59
- // Plusequals test for += 100 -= 100
60
- rplusequals = /^([\-+])=\s*(\d+\.?\d*)/,
61
-
62
- // A set of RE's that can match strings and generate color tuples.
63
- stringParsers = [ {
64
- re: /rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,
65
- parse: function( execResult ) {
66
- return [
67
- execResult[ 1 ],
68
- execResult[ 2 ],
69
- execResult[ 3 ],
70
- execResult[ 4 ]
71
- ];
72
- }
73
- }, {
74
- re: /rgba?\(\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,
75
- parse: function( execResult ) {
76
- return [
77
- execResult[ 1 ] * 2.55,
78
- execResult[ 2 ] * 2.55,
79
- execResult[ 3 ] * 2.55,
80
- execResult[ 4 ]
81
- ];
82
- }
83
- }, {
84
-
85
- // This regex ignores A-F because it's compared against an already lowercased string
86
- re: /#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})/,
87
- parse: function( execResult ) {
88
- return [
89
- parseInt( execResult[ 1 ], 16 ),
90
- parseInt( execResult[ 2 ], 16 ),
91
- parseInt( execResult[ 3 ], 16 )
92
- ];
93
- }
94
- }, {
95
-
96
- // This regex ignores A-F because it's compared against an already lowercased string
97
- re: /#([a-f0-9])([a-f0-9])([a-f0-9])/,
98
- parse: function( execResult ) {
99
- return [
100
- parseInt( execResult[ 1 ] + execResult[ 1 ], 16 ),
101
- parseInt( execResult[ 2 ] + execResult[ 2 ], 16 ),
102
- parseInt( execResult[ 3 ] + execResult[ 3 ], 16 )
103
- ];
104
- }
105
- }, {
106
- re: /hsla?\(\s*(\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,
107
- space: "hsla",
108
- parse: function( execResult ) {
109
- return [
110
- execResult[ 1 ],
111
- execResult[ 2 ] / 100,
112
- execResult[ 3 ] / 100,
113
- execResult[ 4 ]
114
- ];
115
- }
116
- } ],
117
-
118
- // JQuery.Color( )
119
- color = jQuery.Color = function( color, green, blue, alpha ) {
120
- return new jQuery.Color.fn.parse( color, green, blue, alpha );
121
- },
122
- spaces = {
123
- rgba: {
124
- props: {
125
- red: {
126
- idx: 0,
127
- type: "byte"
128
- },
129
- green: {
130
- idx: 1,
131
- type: "byte"
132
- },
133
- blue: {
134
- idx: 2,
135
- type: "byte"
136
- }
137
- }
138
- },
139
-
140
- hsla: {
141
- props: {
142
- hue: {
143
- idx: 0,
144
- type: "degrees"
145
- },
146
- saturation: {
147
- idx: 1,
148
- type: "percent"
149
- },
150
- lightness: {
151
- idx: 2,
152
- type: "percent"
153
- }
154
- }
155
- }
156
- },
157
- propTypes = {
158
- "byte": {
159
- floor: true,
160
- max: 255
161
- },
162
- "percent": {
163
- max: 1
164
- },
165
- "degrees": {
166
- mod: 360,
167
- floor: true
168
- }
169
- },
170
- support = color.support = {},
171
-
172
- // Element for support tests
173
- supportElem = jQuery( "<p>" )[ 0 ],
174
-
175
- // Colors = jQuery.Color.names
176
- colors,
177
-
178
- // Local aliases of functions called often
179
- each = jQuery.each;
180
-
181
- // Determine rgba support immediately
182
- supportElem.style.cssText = "background-color:rgba(1,1,1,.5)";
183
- support.rgba = supportElem.style.backgroundColor.indexOf( "rgba" ) > -1;
184
-
185
- // Define cache name and alpha properties
186
- // for rgba and hsla spaces
187
- each( spaces, function( spaceName, space ) {
188
- space.cache = "_" + spaceName;
189
- space.props.alpha = {
190
- idx: 3,
191
- type: "percent",
192
- def: 1
193
- };
194
- } );
195
-
196
- function clamp( value, prop, allowEmpty ) {
197
- var type = propTypes[ prop.type ] || {};
198
-
199
- if ( value == null ) {
200
- return ( allowEmpty || !prop.def ) ? null : prop.def;
201
- }
202
-
203
- // ~~ is an short way of doing floor for positive numbers
204
- value = type.floor ? ~~value : parseFloat( value );
205
-
206
- // IE will pass in empty strings as value for alpha,
207
- // which will hit this case
208
- if ( isNaN( value ) ) {
209
- return prop.def;
210
- }
211
-
212
- if ( type.mod ) {
213
-
214
- // We add mod before modding to make sure that negatives values
215
- // get converted properly: -10 -> 350
216
- return ( value + type.mod ) % type.mod;
217
- }
218
-
219
- // For now all property types without mod have min and max
220
- return 0 > value ? 0 : type.max < value ? type.max : value;
221
- }
222
-
223
- function stringParse( string ) {
224
- var inst = color(),
225
- rgba = inst._rgba = [];
226
-
227
- string = string.toLowerCase();
228
-
229
- each( stringParsers, function( i, parser ) {
230
- var parsed,
231
- match = parser.re.exec( string ),
232
- values = match && parser.parse( match ),
233
- spaceName = parser.space || "rgba";
234
-
235
- if ( values ) {
236
- parsed = inst[ spaceName ]( values );
237
-
238
- // If this was an rgba parse the assignment might happen twice
239
- // oh well....
240
- inst[ spaces[ spaceName ].cache ] = parsed[ spaces[ spaceName ].cache ];
241
- rgba = inst._rgba = parsed._rgba;
242
-
243
- // Exit each( stringParsers ) here because we matched
244
- return false;
245
- }
246
- } );
247
-
248
- // Found a stringParser that handled it
249
- if ( rgba.length ) {
250
-
251
- // If this came from a parsed string, force "transparent" when alpha is 0
252
- // chrome, (and maybe others) return "transparent" as rgba(0,0,0,0)
253
- if ( rgba.join() === "0,0,0,0" ) {
254
- jQuery.extend( rgba, colors.transparent );
255
- }
256
- return inst;
257
- }
258
-
259
- // Named colors
260
- return colors[ string ];
261
- }
262
-
263
- color.fn = jQuery.extend( color.prototype, {
264
- parse: function( red, green, blue, alpha ) {
265
- if ( red === undefined ) {
266
- this._rgba = [ null, null, null, null ];
267
- return this;
268
- }
269
- if ( red.jquery || red.nodeType ) {
270
- red = jQuery( red ).css( green );
271
- green = undefined;
272
- }
273
-
274
- var inst = this,
275
- type = jQuery.type( red ),
276
- rgba = this._rgba = [];
277
-
278
- // More than 1 argument specified - assume ( red, green, blue, alpha )
279
- if ( green !== undefined ) {
280
- red = [ red, green, blue, alpha ];
281
- type = "array";
282
- }
283
-
284
- if ( type === "string" ) {
285
- return this.parse( stringParse( red ) || colors._default );
286
- }
287
-
288
- if ( type === "array" ) {
289
- each( spaces.rgba.props, function( key, prop ) {
290
- rgba[ prop.idx ] = clamp( red[ prop.idx ], prop );
291
- } );
292
- return this;
293
- }
294
-
295
- if ( type === "object" ) {
296
- if ( red instanceof color ) {
297
- each( spaces, function( spaceName, space ) {
298
- if ( red[ space.cache ] ) {
299
- inst[ space.cache ] = red[ space.cache ].slice();
300
- }
301
- } );
302
- } else {
303
- each( spaces, function( spaceName, space ) {
304
- var cache = space.cache;
305
- each( space.props, function( key, prop ) {
306
-
307
- // If the cache doesn't exist, and we know how to convert
308
- if ( !inst[ cache ] && space.to ) {
309
-
310
- // If the value was null, we don't need to copy it
311
- // if the key was alpha, we don't need to copy it either
312
- if ( key === "alpha" || red[ key ] == null ) {
313
- return;
314
- }
315
- inst[ cache ] = space.to( inst._rgba );
316
- }
317
-
318
- // This is the only case where we allow nulls for ALL properties.
319
- // call clamp with alwaysAllowEmpty
320
- inst[ cache ][ prop.idx ] = clamp( red[ key ], prop, true );
321
- } );
322
-
323
- // Everything defined but alpha?
324
- if ( inst[ cache ] &&
325
- jQuery.inArray( null, inst[ cache ].slice( 0, 3 ) ) < 0 ) {
326
-
327
- // Use the default of 1
328
- inst[ cache ][ 3 ] = 1;
329
- if ( space.from ) {
330
- inst._rgba = space.from( inst[ cache ] );
331
- }
332
- }
333
- } );
334
- }
335
- return this;
336
- }
337
- },
338
- is: function( compare ) {
339
- var is = color( compare ),
340
- same = true,
341
- inst = this;
342
-
343
- each( spaces, function( _, space ) {
344
- var localCache,
345
- isCache = is[ space.cache ];
346
- if ( isCache ) {
347
- localCache = inst[ space.cache ] || space.to && space.to( inst._rgba ) || [];
348
- each( space.props, function( _, prop ) {
349
- if ( isCache[ prop.idx ] != null ) {
350
- same = ( isCache[ prop.idx ] === localCache[ prop.idx ] );
351
- return same;
352
- }
353
- } );
354
- }
355
- return same;
356
- } );
357
- return same;
358
- },
359
- _space: function() {
360
- var used = [],
361
- inst = this;
362
- each( spaces, function( spaceName, space ) {
363
- if ( inst[ space.cache ] ) {
364
- used.push( spaceName );
365
- }
366
- } );
367
- return used.pop();
368
- },
369
- transition: function( other, distance ) {
370
- var end = color( other ),
371
- spaceName = end._space(),
372
- space = spaces[ spaceName ],
373
- startColor = this.alpha() === 0 ? color( "transparent" ) : this,
374
- start = startColor[ space.cache ] || space.to( startColor._rgba ),
375
- result = start.slice();
376
-
377
- end = end[ space.cache ];
378
- each( space.props, function( key, prop ) {
379
- var index = prop.idx,
380
- startValue = start[ index ],
381
- endValue = end[ index ],
382
- type = propTypes[ prop.type ] || {};
383
-
384
- // If null, don't override start value
385
- if ( endValue === null ) {
386
- return;
387
- }
388
-
389
- // If null - use end
390
- if ( startValue === null ) {
391
- result[ index ] = endValue;
392
- } else {
393
- if ( type.mod ) {
394
- if ( endValue - startValue > type.mod / 2 ) {
395
- startValue += type.mod;
396
- } else if ( startValue - endValue > type.mod / 2 ) {
397
- startValue -= type.mod;
398
- }
399
- }
400
- result[ index ] = clamp( ( endValue - startValue ) * distance + startValue, prop );
401
- }
402
- } );
403
- return this[ spaceName ]( result );
404
- },
405
- blend: function( opaque ) {
406
-
407
- // If we are already opaque - return ourself
408
- if ( this._rgba[ 3 ] === 1 ) {
409
- return this;
410
- }
411
-
412
- var rgb = this._rgba.slice(),
413
- a = rgb.pop(),
414
- blend = color( opaque )._rgba;
415
-
416
- return color( jQuery.map( rgb, function( v, i ) {
417
- return ( 1 - a ) * blend[ i ] + a * v;
418
- } ) );
419
- },
420
- toRgbaString: function() {
421
- var prefix = "rgba(",
422
- rgba = jQuery.map( this._rgba, function( v, i ) {
423
- return v == null ? ( i > 2 ? 1 : 0 ) : v;
424
- } );
425
-
426
- if ( rgba[ 3 ] === 1 ) {
427
- rgba.pop();
428
- prefix = "rgb(";
429
- }
430
-
431
- return prefix + rgba.join() + ")";
432
- },
433
- toHslaString: function() {
434
- var prefix = "hsla(",
435
- hsla = jQuery.map( this.hsla(), function( v, i ) {
436
- if ( v == null ) {
437
- v = i > 2 ? 1 : 0;
438
- }
439
-
440
- // Catch 1 and 2
441
- if ( i && i < 3 ) {
442
- v = Math.round( v * 100 ) + "%";
443
- }
444
- return v;
445
- } );
446
-
447
- if ( hsla[ 3 ] === 1 ) {
448
- hsla.pop();
449
- prefix = "hsl(";
450
- }
451
- return prefix + hsla.join() + ")";
452
- },
453
- toHexString: function( includeAlpha ) {
454
- var rgba = this._rgba.slice(),
455
- alpha = rgba.pop();
456
-
457
- if ( includeAlpha ) {
458
- rgba.push( ~~( alpha * 255 ) );
459
- }
460
-
461
- return "#" + jQuery.map( rgba, function( v ) {
462
-
463
- // Default to 0 when nulls exist
464
- v = ( v || 0 ).toString( 16 );
465
- return v.length === 1 ? "0" + v : v;
466
- } ).join( "" );
467
- },
468
- toString: function() {
469
- return this._rgba[ 3 ] === 0 ? "transparent" : this.toRgbaString();
470
- }
471
- } );
472
- color.fn.parse.prototype = color.fn;
473
-
474
- // Hsla conversions adapted from:
475
- // https://code.google.com/p/maashaack/source/browse/packages/graphics/trunk/src/graphics/colors/HUE2RGB.as?r=5021
476
-
477
- function hue2rgb( p, q, h ) {
478
- h = ( h + 1 ) % 1;
479
- if ( h * 6 < 1 ) {
480
- return p + ( q - p ) * h * 6;
481
- }
482
- if ( h * 2 < 1 ) {
483
- return q;
484
- }
485
- if ( h * 3 < 2 ) {
486
- return p + ( q - p ) * ( ( 2 / 3 ) - h ) * 6;
487
- }
488
- return p;
489
- }
490
-
491
- spaces.hsla.to = function( rgba ) {
492
- if ( rgba[ 0 ] == null || rgba[ 1 ] == null || rgba[ 2 ] == null ) {
493
- return [ null, null, null, rgba[ 3 ] ];
494
- }
495
- var r = rgba[ 0 ] / 255,
496
- g = rgba[ 1 ] / 255,
497
- b = rgba[ 2 ] / 255,
498
- a = rgba[ 3 ],
499
- max = Math.max( r, g, b ),
500
- min = Math.min( r, g, b ),
501
- diff = max - min,
502
- add = max + min,
503
- l = add * 0.5,
504
- h, s;
505
-
506
- if ( min === max ) {
507
- h = 0;
508
- } else if ( r === max ) {
509
- h = ( 60 * ( g - b ) / diff ) + 360;
510
- } else if ( g === max ) {
511
- h = ( 60 * ( b - r ) / diff ) + 120;
512
- } else {
513
- h = ( 60 * ( r - g ) / diff ) + 240;
514
- }
515
-
516
- // Chroma (diff) == 0 means greyscale which, by definition, saturation = 0%
517
- // otherwise, saturation is based on the ratio of chroma (diff) to lightness (add)
518
- if ( diff === 0 ) {
519
- s = 0;
520
- } else if ( l <= 0.5 ) {
521
- s = diff / add;
522
- } else {
523
- s = diff / ( 2 - add );
524
- }
525
- return [ Math.round( h ) % 360, s, l, a == null ? 1 : a ];
526
- };
527
-
528
- spaces.hsla.from = function( hsla ) {
529
- if ( hsla[ 0 ] == null || hsla[ 1 ] == null || hsla[ 2 ] == null ) {
530
- return [ null, null, null, hsla[ 3 ] ];
531
- }
532
- var h = hsla[ 0 ] / 360,
533
- s = hsla[ 1 ],
534
- l = hsla[ 2 ],
535
- a = hsla[ 3 ],
536
- q = l <= 0.5 ? l * ( 1 + s ) : l + s - l * s,
537
- p = 2 * l - q;
538
-
539
- return [
540
- Math.round( hue2rgb( p, q, h + ( 1 / 3 ) ) * 255 ),
541
- Math.round( hue2rgb( p, q, h ) * 255 ),
542
- Math.round( hue2rgb( p, q, h - ( 1 / 3 ) ) * 255 ),
543
- a
544
- ];
545
- };
546
-
547
- each( spaces, function( spaceName, space ) {
548
- var props = space.props,
549
- cache = space.cache,
550
- to = space.to,
551
- from = space.from;
552
-
553
- // Makes rgba() and hsla()
554
- color.fn[ spaceName ] = function( value ) {
555
-
556
- // Generate a cache for this space if it doesn't exist
557
- if ( to && !this[ cache ] ) {
558
- this[ cache ] = to( this._rgba );
559
- }
560
- if ( value === undefined ) {
561
- return this[ cache ].slice();
562
- }
563
-
564
- var ret,
565
- type = jQuery.type( value ),
566
- arr = ( type === "array" || type === "object" ) ? value : arguments,
567
- local = this[ cache ].slice();
568
-
569
- each( props, function( key, prop ) {
570
- var val = arr[ type === "object" ? key : prop.idx ];
571
- if ( val == null ) {
572
- val = local[ prop.idx ];
573
- }
574
- local[ prop.idx ] = clamp( val, prop );
575
- } );
576
-
577
- if ( from ) {
578
- ret = color( from( local ) );
579
- ret[ cache ] = local;
580
- return ret;
581
- } else {
582
- return color( local );
583
- }
584
- };
585
-
586
- // Makes red() green() blue() alpha() hue() saturation() lightness()
587
- each( props, function( key, prop ) {
588
-
589
- // Alpha is included in more than one space
590
- if ( color.fn[ key ] ) {
591
- return;
592
- }
593
- color.fn[ key ] = function( value ) {
594
- var vtype = jQuery.type( value ),
595
- fn = ( key === "alpha" ? ( this._hsla ? "hsla" : "rgba" ) : spaceName ),
596
- local = this[ fn ](),
597
- cur = local[ prop.idx ],
598
- match;
599
-
600
- if ( vtype === "undefined" ) {
601
- return cur;
602
- }
603
-
604
- if ( vtype === "function" ) {
605
- value = value.call( this, cur );
606
- vtype = jQuery.type( value );
607
- }
608
- if ( value == null && prop.empty ) {
609
- return this;
610
- }
611
- if ( vtype === "string" ) {
612
- match = rplusequals.exec( value );
613
- if ( match ) {
614
- value = cur + parseFloat( match[ 2 ] ) * ( match[ 1 ] === "+" ? 1 : -1 );
615
- }
616
- }
617
- local[ prop.idx ] = value;
618
- return this[ fn ]( local );
619
- };
620
- } );
621
- } );
622
-
623
- // Add cssHook and .fx.step function for each named hook.
624
- // accept a space separated string of properties
625
- color.hook = function( hook ) {
626
- var hooks = hook.split( " " );
627
- each( hooks, function( i, hook ) {
628
- jQuery.cssHooks[ hook ] = {
629
- set: function( elem, value ) {
630
- var parsed, curElem,
631
- backgroundColor = "";
632
-
633
- if ( value !== "transparent" && ( jQuery.type( value ) !== "string" ||
634
- ( parsed = stringParse( value ) ) ) ) {
635
- value = color( parsed || value );
636
- if ( !support.rgba && value._rgba[ 3 ] !== 1 ) {
637
- curElem = hook === "backgroundColor" ? elem.parentNode : elem;
638
- while (
639
- ( backgroundColor === "" || backgroundColor === "transparent" ) &&
640
- curElem && curElem.style
641
- ) {
642
- try {
643
- backgroundColor = jQuery.css( curElem, "backgroundColor" );
644
- curElem = curElem.parentNode;
645
- } catch ( e ) {
646
- }
647
- }
648
-
649
- value = value.blend( backgroundColor && backgroundColor !== "transparent" ?
650
- backgroundColor :
651
- "_default" );
652
- }
653
-
654
- value = value.toRgbaString();
655
- }
656
- try {
657
- elem.style[ hook ] = value;
658
- } catch ( e ) {
659
-
660
- // Wrapped to prevent IE from throwing errors on "invalid" values like
661
- // 'auto' or 'inherit'
662
- }
663
- }
664
- };
665
- jQuery.fx.step[ hook ] = function( fx ) {
666
- if ( !fx.colorInit ) {
667
- fx.start = color( fx.elem, hook );
668
- fx.end = color( fx.end );
669
- fx.colorInit = true;
670
- }
671
- jQuery.cssHooks[ hook ].set( fx.elem, fx.start.transition( fx.end, fx.pos ) );
672
- };
673
- } );
674
-
675
- };
676
-
677
- color.hook( stepHooks );
678
-
679
- jQuery.cssHooks.borderColor = {
680
- expand: function( value ) {
681
- var expanded = {};
682
-
683
- each( [ "Top", "Right", "Bottom", "Left" ], function( i, part ) {
684
- expanded[ "border" + part + "Color" ] = value;
685
- } );
686
- return expanded;
687
- }
688
- };
689
-
690
- // Basic color names only.
691
- // Usage of any of the other color names requires adding yourself or including
692
- // jquery.color.svg-names.js.
693
- colors = jQuery.Color.names = {
694
-
695
- // 4.1. Basic color keywords
696
- aqua: "#00ffff",
697
- black: "#000000",
698
- blue: "#0000ff",
699
- fuchsia: "#ff00ff",
700
- gray: "#808080",
701
- green: "#008000",
702
- lime: "#00ff00",
703
- maroon: "#800000",
704
- navy: "#000080",
705
- olive: "#808000",
706
- purple: "#800080",
707
- red: "#ff0000",
708
- silver: "#c0c0c0",
709
- teal: "#008080",
710
- white: "#ffffff",
711
- yellow: "#ffff00",
712
-
713
- // 4.2.3. "transparent" color keyword
714
- transparent: [ null, null, null, 0 ],
715
-
716
- _default: "#ffffff"
717
- };
718
-
719
- } )( jQuery );
720
-
721
50
  /******************************************************************************/
722
51
  /****************************** CLASS ANIMATIONS ******************************/
723
52
  /******************************************************************************/
@@ -748,28 +77,22 @@ $.each(
748
77
  }
749
78
  );
750
79
 
80
+ function camelCase( string ) {
81
+ return string.replace( /-([\da-z])/gi, function( all, letter ) {
82
+ return letter.toUpperCase();
83
+ } );
84
+ }
85
+
751
86
  function getElementStyles( elem ) {
752
87
  var key, len,
753
- style = elem.ownerDocument.defaultView ?
754
- elem.ownerDocument.defaultView.getComputedStyle( elem, null ) :
755
- elem.currentStyle,
88
+ style = elem.ownerDocument.defaultView.getComputedStyle( elem ),
756
89
  styles = {};
757
90
 
758
- if ( style && style.length && style[ 0 ] && style[ style[ 0 ] ] ) {
759
- len = style.length;
760
- while ( len-- ) {
761
- key = style[ len ];
762
- if ( typeof style[ key ] === "string" ) {
763
- styles[ $.camelCase( key ) ] = style[ key ];
764
- }
765
- }
766
-
767
- // Support: Opera, IE <9
768
- } else {
769
- for ( key in style ) {
770
- if ( typeof style[ key ] === "string" ) {
771
- styles[ key ] = style[ key ];
772
- }
91
+ len = style.length;
92
+ while ( len-- ) {
93
+ key = style[ len ];
94
+ if ( typeof style[ key ] === "string" ) {
95
+ styles[ camelCase( key ) ] = style[ key ];
773
96
  }
774
97
  }
775
98
 
@@ -794,15 +117,6 @@ function styleDifference( oldStyle, newStyle ) {
794
117
  return diff;
795
118
  }
796
119
 
797
- // Support: jQuery <1.8
798
- if ( !$.fn.addBack ) {
799
- $.fn.addBack = function( selector ) {
800
- return this.add( selector == null ?
801
- this.prevObject : this.prevObject.filter( selector )
802
- );
803
- };
804
- }
805
-
806
120
  $.effects.animateClass = function( value, duration, easing, callback ) {
807
121
  var o = $.speed( duration, easing, callback );
808
122
 
@@ -934,15 +248,15 @@ $.fn.extend( {
934
248
 
935
249
  ( function() {
936
250
 
937
- if ( $.expr && $.expr.filters && $.expr.filters.animated ) {
938
- $.expr.filters.animated = ( function( orig ) {
251
+ if ( $.expr && $.expr.pseudos && $.expr.pseudos.animated ) {
252
+ $.expr.pseudos.animated = ( function( orig ) {
939
253
  return function( elem ) {
940
254
  return !!$( elem ).data( dataSpaceAnimated ) || orig( elem );
941
255
  };
942
- } )( $.expr.filters.animated );
256
+ } )( $.expr.pseudos.animated );
943
257
  }
944
258
 
945
- if ( $.uiBackCompat !== false ) {
259
+ if ( $.uiBackCompat === true ) {
946
260
  $.extend( $.effects, {
947
261
 
948
262
  // Saves a set of properties in a data storage
@@ -1008,6 +322,7 @@ if ( $.uiBackCompat !== false ) {
1008
322
  // Firefox incorrectly exposes anonymous content
1009
323
  // https://bugzilla.mozilla.org/show_bug.cgi?id=561664
1010
324
  try {
325
+ // eslint-disable-next-line no-unused-expressions
1011
326
  active.id;
1012
327
  } catch ( e ) {
1013
328
  active = document.body;
@@ -1070,7 +385,7 @@ if ( $.uiBackCompat !== false ) {
1070
385
  }
1071
386
 
1072
387
  $.extend( $.effects, {
1073
- version: "1.12.1",
388
+ version: "1.14.1",
1074
389
 
1075
390
  define: function( name, mode, effect ) {
1076
391
  if ( !effect ) {
@@ -1193,7 +508,7 @@ $.extend( $.effects, {
1193
508
 
1194
509
  // Lock in margins first to account for form elements, which
1195
510
  // will change margin if you explicitly set height
1196
- // see: http://jsfiddle.net/JZSMt/3/ https://bugs.webkit.org/show_bug.cgi?id=107380
511
+ // see: https://jsfiddle.net/JZSMt/3/ https://bugs.webkit.org/show_bug.cgi?id=107380
1197
512
  // Support: Safari
1198
513
  element.css( {
1199
514
  marginTop: element.css( "marginTop" ),
@@ -1286,7 +601,7 @@ function _normalizeArguments( effect, options, speed, callback ) {
1286
601
  }
1287
602
 
1288
603
  // Catch (effect, callback)
1289
- if ( $.isFunction( options ) ) {
604
+ if ( typeof options === "function" ) {
1290
605
  callback = options;
1291
606
  speed = null;
1292
607
  options = {};
@@ -1300,7 +615,7 @@ function _normalizeArguments( effect, options, speed, callback ) {
1300
615
  }
1301
616
 
1302
617
  // Catch (effect, options, callback)
1303
- if ( $.isFunction( speed ) ) {
618
+ if ( typeof speed === "function" ) {
1304
619
  callback = speed;
1305
620
  speed = null;
1306
621
  }
@@ -1334,7 +649,7 @@ function standardAnimationOption( option ) {
1334
649
  }
1335
650
 
1336
651
  // Complete callback
1337
- if ( $.isFunction( option ) ) {
652
+ if ( typeof option === "function" ) {
1338
653
  return true;
1339
654
  }
1340
655
 
@@ -1361,7 +676,7 @@ $.fn.extend( {
1361
676
  var el = $( this ),
1362
677
  normalizedMode = $.effects.mode( el, mode ) || defaultMode;
1363
678
 
1364
- // Sentinel for duck-punching the :animated psuedo-selector
679
+ // Sentinel for duck-punching the :animated pseudo-selector
1365
680
  el.data( dataSpaceAnimated, true );
1366
681
 
1367
682
  // Save effect mode for later use,
@@ -1369,7 +684,7 @@ $.fn.extend( {
1369
684
  // as the .show() below destroys the initial state
1370
685
  modes.push( normalizedMode );
1371
686
 
1372
- // See $.uiBackCompat inside of run() for removal of defaultMode in 1.13
687
+ // See $.uiBackCompat inside of run() for removal of defaultMode in 1.14
1373
688
  if ( defaultMode && ( normalizedMode === "show" ||
1374
689
  ( normalizedMode === defaultMode && normalizedMode === "hide" ) ) ) {
1375
690
  el.show();
@@ -1379,7 +694,7 @@ $.fn.extend( {
1379
694
  $.effects.saveStyle( el );
1380
695
  }
1381
696
 
1382
- if ( $.isFunction( next ) ) {
697
+ if ( typeof next === "function" ) {
1383
698
  next();
1384
699
  }
1385
700
  };
@@ -1414,11 +729,11 @@ $.fn.extend( {
1414
729
  }
1415
730
 
1416
731
  function done() {
1417
- if ( $.isFunction( complete ) ) {
732
+ if ( typeof complete === "function" ) {
1418
733
  complete.call( elem[ 0 ] );
1419
734
  }
1420
735
 
1421
- if ( $.isFunction( next ) ) {
736
+ if ( typeof next === "function" ) {
1422
737
  next();
1423
738
  }
1424
739
  }
@@ -1427,7 +742,7 @@ $.fn.extend( {
1427
742
  // as toggle can be either show or hide depending on element state
1428
743
  args.mode = modes.shift();
1429
744
 
1430
- if ( $.uiBackCompat !== false && !defaultMode ) {
745
+ if ( $.uiBackCompat === true && !defaultMode ) {
1431
746
  if ( elem.is( ":hidden" ) ? mode === "hide" : mode === "show" ) {
1432
747
 
1433
748
  // Call the core method to track "olddisplay" properly
@@ -1527,22 +842,24 @@ $.fn.extend( {
1527
842
  width: target.innerWidth()
1528
843
  },
1529
844
  startPosition = element.offset(),
1530
- transfer = $( "<div class='ui-effects-transfer'></div>" )
1531
- .appendTo( "body" )
1532
- .addClass( options.className )
1533
- .css( {
1534
- top: startPosition.top - fixTop,
1535
- left: startPosition.left - fixLeft,
1536
- height: element.innerHeight(),
1537
- width: element.innerWidth(),
1538
- position: targetFixed ? "fixed" : "absolute"
1539
- } )
1540
- .animate( animation, options.duration, options.easing, function() {
1541
- transfer.remove();
1542
- if ( $.isFunction( done ) ) {
1543
- done();
1544
- }
1545
- } );
845
+ transfer = $( "<div class='ui-effects-transfer'></div>" );
846
+
847
+ transfer
848
+ .appendTo( "body" )
849
+ .addClass( options.className )
850
+ .css( {
851
+ top: startPosition.top - fixTop,
852
+ left: startPosition.left - fixLeft,
853
+ height: element.innerHeight(),
854
+ width: element.innerWidth(),
855
+ position: targetFixed ? "fixed" : "absolute"
856
+ } )
857
+ .animate( animation, options.duration, options.easing, function() {
858
+ transfer.remove();
859
+ if ( typeof done === "function" ) {
860
+ done();
861
+ }
862
+ } );
1546
863
  }
1547
864
  } );
1548
865
 
@@ -1585,7 +902,7 @@ $.fx.step.clip = function( fx ) {
1585
902
 
1586
903
  ( function() {
1587
904
 
1588
- // Based on easing equations from Robert Penner (http://www.robertpenner.com/easing)
905
+ // Based on easing equations from Robert Penner (http://robertpenner.com/easing)
1589
906
 
1590
907
  var baseEasings = {};
1591
908
 
@@ -1634,4 +951,4 @@ $.each( baseEasings, function( name, easeIn ) {
1634
951
 
1635
952
  return $.effects;
1636
953
 
1637
- } ) );
954
+ } );