3
3
//= require jquery-ui/version
4
4
5
5
/*!
6
- * jQuery UI Effects 1.13.0
7
- * http ://jqueryui.com
6
+ * jQuery UI Effects 1.14.1
7
+ * https ://jqueryui.com
8
8
*
9
- * Copyright jQuery Foundation and other contributors
9
+ * Copyright OpenJS Foundation and other contributors
10
10
* Released under the MIT license.
11
- * http ://jquery.org/license
11
+ * https ://jquery.org/license
12
12
*/
13
13
14
14
//>>label: Effects Core
15
15
//>>group: Effects
16
16
/* eslint-disable max-len */
17
17
//>>description: Extends the internal jQuery effects. Includes morphing and easing. Required by all other effects.
18
18
/* eslint-enable max-len */
19
- //>>docs: http ://api.jqueryui.com/category/effects-core/
20
- //>>demos: http ://jqueryui.com/effect/
19
+ //>>docs: https ://api.jqueryui.com/category/effects-core/
20
+ //>>demos: https ://jqueryui.com/effect/
21
21
22
22
( function ( factory ) {
23
23
"use strict" ;
@@ -85,26 +85,14 @@ function camelCase( string ) {
85
85
86
86
function getElementStyles ( elem ) {
87
87
var key , len ,
88
- style = elem . ownerDocument . defaultView ?
89
- elem . ownerDocument . defaultView . getComputedStyle ( elem , null ) :
90
- elem . currentStyle ,
88
+ style = elem . ownerDocument . defaultView . getComputedStyle ( elem ) ,
91
89
styles = { } ;
92
90
93
- if ( style && style . length && style [ 0 ] && style [ style [ 0 ] ] ) {
94
- len = style . length ;
95
- while ( len -- ) {
96
- key = style [ len ] ;
97
- if ( typeof style [ key ] === "string" ) {
98
- styles [ camelCase ( key ) ] = style [ key ] ;
99
- }
100
- }
101
-
102
- // Support: Opera, IE <9
103
- } else {
104
- for ( key in style ) {
105
- if ( typeof style [ key ] === "string" ) {
106
- styles [ key ] = style [ key ] ;
107
- }
91
+ len = style . length ;
92
+ while ( len -- ) {
93
+ key = style [ len ] ;
94
+ if ( typeof style [ key ] === "string" ) {
95
+ styles [ camelCase ( key ) ] = style [ key ] ;
108
96
}
109
97
}
110
98
@@ -129,15 +117,6 @@ function styleDifference( oldStyle, newStyle ) {
129
117
return diff ;
130
118
}
131
119
132
- // Support: jQuery <1.8
133
- if ( ! $ . fn . addBack ) {
134
- $ . fn . addBack = function ( selector ) {
135
- return this . add ( selector == null ?
136
- this . prevObject : this . prevObject . filter ( selector )
137
- ) ;
138
- } ;
139
- }
140
-
141
120
$ . effects . animateClass = function ( value , duration , easing , callback ) {
142
121
var o = $ . speed ( duration , easing , callback ) ;
143
122
@@ -277,7 +256,7 @@ if ( $.expr && $.expr.pseudos && $.expr.pseudos.animated ) {
277
256
} ) ( $ . expr . pseudos . animated ) ;
278
257
}
279
258
280
- if ( $ . uiBackCompat !== false ) {
259
+ if ( $ . uiBackCompat === true ) {
281
260
$ . extend ( $ . effects , {
282
261
283
262
// Saves a set of properties in a data storage
@@ -406,7 +385,7 @@ if ( $.uiBackCompat !== false ) {
406
385
}
407
386
408
387
$ . extend ( $ . effects , {
409
- version : "1.13.0 " ,
388
+ version : "1.14.1 " ,
410
389
411
390
define : function ( name , mode , effect ) {
412
391
if ( ! effect ) {
@@ -529,7 +508,7 @@ $.extend( $.effects, {
529
508
530
509
// Lock in margins first to account for form elements, which
531
510
// will change margin if you explicitly set height
532
- // 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
533
512
// Support: Safari
534
513
element . css ( {
535
514
marginTop : element . css ( "marginTop" ) ,
@@ -763,7 +742,7 @@ $.fn.extend( {
763
742
// as toggle can be either show or hide depending on element state
764
743
args . mode = modes . shift ( ) ;
765
744
766
- if ( $ . uiBackCompat !== false && ! defaultMode ) {
745
+ if ( $ . uiBackCompat === true && ! defaultMode ) {
767
746
if ( elem . is ( ":hidden" ) ? mode === "hide" : mode === "show" ) {
768
747
769
748
// Call the core method to track "olddisplay" properly
@@ -923,7 +902,7 @@ $.fx.step.clip = function( fx ) {
923
902
924
903
( function ( ) {
925
904
926
- // Based on easing equations from Robert Penner (http://www. robertpenner.com/easing)
905
+ // Based on easing equations from Robert Penner (http://robertpenner.com/easing)
927
906
928
907
var baseEasings = { } ;
929
908
0 commit comments