jquery-ui-rails 3.0.1 → 4.0.0
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of jquery-ui-rails might be problematic. Click here for more details.
- data/History.md +10 -0
- data/README.md +1 -1
- data/Rakefile +4 -5
- data/lib/jquery/ui/rails/version.rb +1 -1
- data/vendor/assets/javascripts/jquery.ui.accordion.js +130 -290
- data/vendor/assets/javascripts/jquery.ui.autocomplete.js +30 -18
- data/vendor/assets/javascripts/jquery.ui.button.js +9 -8
- data/vendor/assets/javascripts/jquery.ui.core.js +19 -53
- data/vendor/assets/javascripts/jquery.ui.datepicker-be.js +23 -0
- data/vendor/assets/javascripts/jquery.ui.datepicker-fr-CA.js +23 -0
- data/vendor/assets/javascripts/jquery.ui.datepicker-ky.js +24 -0
- data/vendor/assets/javascripts/jquery.ui.datepicker-nb.js +22 -0
- data/vendor/assets/javascripts/jquery.ui.datepicker-nn.js +22 -0
- data/vendor/assets/javascripts/jquery.ui.datepicker.js +1076 -878
- data/vendor/assets/javascripts/jquery.ui.dialog.js +456 -547
- data/vendor/assets/javascripts/jquery.ui.draggable.js +317 -207
- data/vendor/assets/javascripts/jquery.ui.droppable.js +177 -100
- data/vendor/assets/javascripts/jquery.ui.effect-blind.js +2 -2
- data/vendor/assets/javascripts/jquery.ui.effect-bounce.js +2 -2
- data/vendor/assets/javascripts/jquery.ui.effect-clip.js +2 -2
- data/vendor/assets/javascripts/jquery.ui.effect-drop.js +2 -2
- data/vendor/assets/javascripts/jquery.ui.effect-explode.js +2 -2
- data/vendor/assets/javascripts/jquery.ui.effect-fade.js +2 -2
- data/vendor/assets/javascripts/jquery.ui.effect-fold.js +2 -2
- data/vendor/assets/javascripts/jquery.ui.effect-highlight.js +2 -2
- data/vendor/assets/javascripts/jquery.ui.effect-pulsate.js +2 -2
- data/vendor/assets/javascripts/jquery.ui.effect-scale.js +2 -2
- data/vendor/assets/javascripts/jquery.ui.effect-shake.js +2 -2
- data/vendor/assets/javascripts/jquery.ui.effect-slide.js +2 -2
- data/vendor/assets/javascripts/jquery.ui.effect-transfer.js +3 -3
- data/vendor/assets/javascripts/jquery.ui.effect.js +91 -99
- data/vendor/assets/javascripts/jquery.ui.menu.js +20 -9
- data/vendor/assets/javascripts/jquery.ui.mouse.js +25 -25
- data/vendor/assets/javascripts/jquery.ui.position.js +39 -59
- data/vendor/assets/javascripts/jquery.ui.progressbar.js +73 -33
- data/vendor/assets/javascripts/jquery.ui.resizable.js +461 -294
- data/vendor/assets/javascripts/jquery.ui.selectable.js +67 -51
- data/vendor/assets/javascripts/jquery.ui.slider.js +100 -95
- data/vendor/assets/javascripts/jquery.ui.sortable.js +411 -257
- data/vendor/assets/javascripts/jquery.ui.spinner.js +19 -5
- data/vendor/assets/javascripts/jquery.ui.tabs.js +47 -567
- data/vendor/assets/javascripts/jquery.ui.tooltip.js +14 -10
- data/vendor/assets/javascripts/jquery.ui.widget.js +33 -40
- data/vendor/assets/stylesheets/jquery.ui.accordion.css.erb +30 -8
- data/vendor/assets/stylesheets/jquery.ui.all.css.erb +2 -2
- data/vendor/assets/stylesheets/jquery.ui.autocomplete.css.erb +2 -5
- data/vendor/assets/stylesheets/jquery.ui.base.css.erb +2 -2
- data/vendor/assets/stylesheets/jquery.ui.button.css.erb +100 -26
- data/vendor/assets/stylesheets/jquery.ui.core.css.erb +65 -12
- data/vendor/assets/stylesheets/jquery.ui.datepicker.css.erb +166 -55
- data/vendor/assets/stylesheets/jquery.ui.dialog.css.erb +61 -14
- data/vendor/assets/stylesheets/jquery.ui.menu.css.erb +61 -14
- data/vendor/assets/stylesheets/jquery.ui.progressbar.css.erb +20 -4
- data/vendor/assets/stylesheets/jquery.ui.resizable.css.erb +70 -13
- data/vendor/assets/stylesheets/jquery.ui.selectable.css.erb +7 -3
- data/vendor/assets/stylesheets/jquery.ui.slider.css.erb +63 -15
- data/vendor/assets/stylesheets/jquery.ui.spinner.css.erb +52 -10
- data/vendor/assets/stylesheets/jquery.ui.tabs.css.erb +44 -10
- data/vendor/assets/stylesheets/jquery.ui.theme.css.erb +196 -38
- data/vendor/assets/stylesheets/jquery.ui.tooltip.css.erb +4 -6
- metadata +8 -3
@@ -1,10 +1,10 @@
|
|
1
1
|
//= require jquery.ui.effect
|
2
2
|
|
3
3
|
/*!
|
4
|
-
* jQuery UI Effects Clip 1.
|
4
|
+
* jQuery UI Effects Clip 1.10.0
|
5
5
|
* http://jqueryui.com
|
6
6
|
*
|
7
|
-
* Copyright
|
7
|
+
* Copyright 2013 jQuery Foundation and other contributors
|
8
8
|
* Released under the MIT license.
|
9
9
|
* http://jquery.org/license
|
10
10
|
*
|
@@ -1,10 +1,10 @@
|
|
1
1
|
//= require jquery.ui.effect
|
2
2
|
|
3
3
|
/*!
|
4
|
-
* jQuery UI Effects Drop 1.
|
4
|
+
* jQuery UI Effects Drop 1.10.0
|
5
5
|
* http://jqueryui.com
|
6
6
|
*
|
7
|
-
* Copyright
|
7
|
+
* Copyright 2013 jQuery Foundation and other contributors
|
8
8
|
* Released under the MIT license.
|
9
9
|
* http://jquery.org/license
|
10
10
|
*
|
@@ -1,10 +1,10 @@
|
|
1
1
|
//= require jquery.ui.effect
|
2
2
|
|
3
3
|
/*!
|
4
|
-
* jQuery UI Effects Explode 1.
|
4
|
+
* jQuery UI Effects Explode 1.10.0
|
5
5
|
* http://jqueryui.com
|
6
6
|
*
|
7
|
-
* Copyright
|
7
|
+
* Copyright 2013 jQuery Foundation and other contributors
|
8
8
|
* Released under the MIT license.
|
9
9
|
* http://jquery.org/license
|
10
10
|
*
|
@@ -1,10 +1,10 @@
|
|
1
1
|
//= require jquery.ui.effect
|
2
2
|
|
3
3
|
/*!
|
4
|
-
* jQuery UI Effects Fade 1.
|
4
|
+
* jQuery UI Effects Fade 1.10.0
|
5
5
|
* http://jqueryui.com
|
6
6
|
*
|
7
|
-
* Copyright
|
7
|
+
* Copyright 2013 jQuery Foundation and other contributors
|
8
8
|
* Released under the MIT license.
|
9
9
|
* http://jquery.org/license
|
10
10
|
*
|
@@ -1,10 +1,10 @@
|
|
1
1
|
//= require jquery.ui.effect
|
2
2
|
|
3
3
|
/*!
|
4
|
-
* jQuery UI Effects Fold 1.
|
4
|
+
* jQuery UI Effects Fold 1.10.0
|
5
5
|
* http://jqueryui.com
|
6
6
|
*
|
7
|
-
* Copyright
|
7
|
+
* Copyright 2013 jQuery Foundation and other contributors
|
8
8
|
* Released under the MIT license.
|
9
9
|
* http://jquery.org/license
|
10
10
|
*
|
@@ -1,10 +1,10 @@
|
|
1
1
|
//= require jquery.ui.effect
|
2
2
|
|
3
3
|
/*!
|
4
|
-
* jQuery UI Effects Highlight 1.
|
4
|
+
* jQuery UI Effects Highlight 1.10.0
|
5
5
|
* http://jqueryui.com
|
6
6
|
*
|
7
|
-
* Copyright
|
7
|
+
* Copyright 2013 jQuery Foundation and other contributors
|
8
8
|
* Released under the MIT license.
|
9
9
|
* http://jquery.org/license
|
10
10
|
*
|
@@ -1,10 +1,10 @@
|
|
1
1
|
//= require jquery.ui.effect
|
2
2
|
|
3
3
|
/*!
|
4
|
-
* jQuery UI Effects Pulsate 1.
|
4
|
+
* jQuery UI Effects Pulsate 1.10.0
|
5
5
|
* http://jqueryui.com
|
6
6
|
*
|
7
|
-
* Copyright
|
7
|
+
* Copyright 2013 jQuery Foundation and other contributors
|
8
8
|
* Released under the MIT license.
|
9
9
|
* http://jquery.org/license
|
10
10
|
*
|
@@ -1,10 +1,10 @@
|
|
1
1
|
//= require jquery.ui.effect
|
2
2
|
|
3
3
|
/*!
|
4
|
-
* jQuery UI Effects Scale 1.
|
4
|
+
* jQuery UI Effects Scale 1.10.0
|
5
5
|
* http://jqueryui.com
|
6
6
|
*
|
7
|
-
* Copyright
|
7
|
+
* Copyright 2013 jQuery Foundation and other contributors
|
8
8
|
* Released under the MIT license.
|
9
9
|
* http://jquery.org/license
|
10
10
|
*
|
@@ -1,10 +1,10 @@
|
|
1
1
|
//= require jquery.ui.effect
|
2
2
|
|
3
3
|
/*!
|
4
|
-
* jQuery UI Effects Shake 1.
|
4
|
+
* jQuery UI Effects Shake 1.10.0
|
5
5
|
* http://jqueryui.com
|
6
6
|
*
|
7
|
-
* Copyright
|
7
|
+
* Copyright 2013 jQuery Foundation and other contributors
|
8
8
|
* Released under the MIT license.
|
9
9
|
* http://jquery.org/license
|
10
10
|
*
|
@@ -1,10 +1,10 @@
|
|
1
1
|
//= require jquery.ui.effect
|
2
2
|
|
3
3
|
/*!
|
4
|
-
* jQuery UI Effects Slide 1.
|
4
|
+
* jQuery UI Effects Slide 1.10.0
|
5
5
|
* http://jqueryui.com
|
6
6
|
*
|
7
|
-
* Copyright
|
7
|
+
* Copyright 2013 jQuery Foundation and other contributors
|
8
8
|
* Released under the MIT license.
|
9
9
|
* http://jquery.org/license
|
10
10
|
*
|
@@ -1,10 +1,10 @@
|
|
1
1
|
//= require jquery.ui.effect
|
2
2
|
|
3
3
|
/*!
|
4
|
-
* jQuery UI Effects Transfer 1.
|
4
|
+
* jQuery UI Effects Transfer 1.10.0
|
5
5
|
* http://jqueryui.com
|
6
6
|
*
|
7
|
-
* Copyright
|
7
|
+
* Copyright 2013 jQuery Foundation and other contributors
|
8
8
|
* Released under the MIT license.
|
9
9
|
* http://jquery.org/license
|
10
10
|
*
|
@@ -30,7 +30,7 @@ $.effects.effect.transfer = function( o, done ) {
|
|
30
30
|
width: target.innerWidth()
|
31
31
|
},
|
32
32
|
startPosition = elem.offset(),
|
33
|
-
transfer = $(
|
33
|
+
transfer = $( "<div class='ui-effects-transfer'></div>" )
|
34
34
|
.appendTo( document.body )
|
35
35
|
.addClass( o.className )
|
36
36
|
.css({
|
@@ -1,8 +1,8 @@
|
|
1
1
|
/*!
|
2
|
-
* jQuery UI Effects 1.
|
2
|
+
* jQuery UI Effects 1.10.0
|
3
3
|
* http://jqueryui.com
|
4
4
|
*
|
5
|
-
* Copyright
|
5
|
+
* Copyright 2013 jQuery Foundation and other contributors
|
6
6
|
* Released under the MIT license.
|
7
7
|
* http://jquery.org/license
|
8
8
|
*
|
@@ -10,33 +10,31 @@
|
|
10
10
|
*/
|
11
11
|
;(jQuery.effects || (function($, undefined) {
|
12
12
|
|
13
|
-
var
|
14
|
-
// prefix used for storing data on .data()
|
15
|
-
dataSpace = "ui-effects-";
|
13
|
+
var dataSpace = "ui-effects-";
|
16
14
|
|
17
15
|
$.effects = {
|
18
16
|
effect: {}
|
19
17
|
};
|
20
18
|
|
21
19
|
/*!
|
22
|
-
* jQuery Color Animations v2.
|
23
|
-
*
|
20
|
+
* jQuery Color Animations v2.1.2
|
21
|
+
* https://github.com/jquery/jquery-color
|
24
22
|
*
|
25
|
-
* Copyright
|
23
|
+
* Copyright 2013 jQuery Foundation and other contributors
|
26
24
|
* Released under the MIT license.
|
27
25
|
* http://jquery.org/license
|
28
26
|
*
|
29
|
-
* Date:
|
27
|
+
* Date: Wed Jan 16 08:47:09 2013 -0600
|
30
28
|
*/
|
31
29
|
(function( jQuery, undefined ) {
|
32
30
|
|
33
|
-
var stepHooks = "backgroundColor borderBottomColor borderLeftColor borderRightColor borderTopColor color columnRuleColor outlineColor textDecorationColor textEmphasisColor"
|
31
|
+
var stepHooks = "backgroundColor borderBottomColor borderLeftColor borderRightColor borderTopColor color columnRuleColor outlineColor textDecorationColor textEmphasisColor",
|
34
32
|
|
35
33
|
// plusequals test for += 100 -= 100
|
36
34
|
rplusequals = /^([\-+])=\s*(\d+\.?\d*)/,
|
37
35
|
// a set of RE's that can match strings and generate color tuples.
|
38
36
|
stringParsers = [{
|
39
|
-
re: /rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*(?:,\s*(\d
|
37
|
+
re: /rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,
|
40
38
|
parse: function( execResult ) {
|
41
39
|
return [
|
42
40
|
execResult[ 1 ],
|
@@ -46,7 +44,7 @@ $.effects = {
|
|
46
44
|
];
|
47
45
|
}
|
48
46
|
}, {
|
49
|
-
re: /rgba?\(\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d
|
47
|
+
re: /rgba?\(\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,
|
50
48
|
parse: function( execResult ) {
|
51
49
|
return [
|
52
50
|
execResult[ 1 ] * 2.55,
|
@@ -76,7 +74,7 @@ $.effects = {
|
|
76
74
|
];
|
77
75
|
}
|
78
76
|
}, {
|
79
|
-
re: /hsla?\(\s*(\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d
|
77
|
+
re: /hsla?\(\s*(\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,
|
80
78
|
space: "hsla",
|
81
79
|
parse: function( execResult ) {
|
82
80
|
return [
|
@@ -293,7 +291,7 @@ color.fn = jQuery.extend( color.prototype, {
|
|
293
291
|
});
|
294
292
|
|
295
293
|
// everything defined but alpha?
|
296
|
-
if ( inst[ cache ] &&
|
294
|
+
if ( inst[ cache ] && jQuery.inArray( null, inst[ cache ].slice( 0, 3 ) ) < 0 ) {
|
297
295
|
// use the default of 1
|
298
296
|
inst[ cache ][ 3 ] = 1;
|
299
297
|
if ( space.from ) {
|
@@ -481,8 +479,10 @@ spaces.hsla.to = function ( rgba ) {
|
|
481
479
|
h = ( 60 * ( r - g ) / diff ) + 240;
|
482
480
|
}
|
483
481
|
|
484
|
-
|
485
|
-
|
482
|
+
// chroma (diff) == 0 means greyscale which, by definition, saturation = 0%
|
483
|
+
// otherwise, saturation is based on the ratio of chroma (diff) to lightness (add)
|
484
|
+
if ( diff === 0 ) {
|
485
|
+
s = 0;
|
486
486
|
} else if ( l <= 0.5 ) {
|
487
487
|
s = diff / add;
|
488
488
|
} else {
|
@@ -586,51 +586,58 @@ each( spaces, function( spaceName, space ) {
|
|
586
586
|
});
|
587
587
|
});
|
588
588
|
|
589
|
-
// add .fx.step
|
590
|
-
|
591
|
-
|
592
|
-
|
593
|
-
|
594
|
-
|
595
|
-
|
596
|
-
|
597
|
-
|
598
|
-
|
599
|
-
|
600
|
-
|
601
|
-
|
602
|
-
curElem
|
603
|
-
|
604
|
-
|
605
|
-
|
606
|
-
|
607
|
-
|
589
|
+
// add cssHook and .fx.step function for each named hook.
|
590
|
+
// accept a space separated string of properties
|
591
|
+
color.hook = function( hook ) {
|
592
|
+
var hooks = hook.split( " " );
|
593
|
+
each( hooks, function( i, hook ) {
|
594
|
+
jQuery.cssHooks[ hook ] = {
|
595
|
+
set: function( elem, value ) {
|
596
|
+
var parsed, curElem,
|
597
|
+
backgroundColor = "";
|
598
|
+
|
599
|
+
if ( value !== "transparent" && ( jQuery.type( value ) !== "string" || ( parsed = stringParse( value ) ) ) ) {
|
600
|
+
value = color( parsed || value );
|
601
|
+
if ( !support.rgba && value._rgba[ 3 ] !== 1 ) {
|
602
|
+
curElem = hook === "backgroundColor" ? elem.parentNode : elem;
|
603
|
+
while (
|
604
|
+
(backgroundColor === "" || backgroundColor === "transparent") &&
|
605
|
+
curElem && curElem.style
|
606
|
+
) {
|
607
|
+
try {
|
608
|
+
backgroundColor = jQuery.css( curElem, "backgroundColor" );
|
609
|
+
curElem = curElem.parentNode;
|
610
|
+
} catch ( e ) {
|
611
|
+
}
|
608
612
|
}
|
613
|
+
|
614
|
+
value = value.blend( backgroundColor && backgroundColor !== "transparent" ?
|
615
|
+
backgroundColor :
|
616
|
+
"_default" );
|
609
617
|
}
|
610
618
|
|
611
|
-
value = value.
|
612
|
-
|
613
|
-
|
619
|
+
value = value.toRgbaString();
|
620
|
+
}
|
621
|
+
try {
|
622
|
+
elem.style[ hook ] = value;
|
623
|
+
} catch( e ) {
|
624
|
+
// wrapped to prevent IE from throwing errors on "invalid" values like 'auto' or 'inherit'
|
614
625
|
}
|
615
|
-
|
616
|
-
value = value.toRgbaString();
|
617
626
|
}
|
618
|
-
|
619
|
-
|
620
|
-
|
621
|
-
|
627
|
+
};
|
628
|
+
jQuery.fx.step[ hook ] = function( fx ) {
|
629
|
+
if ( !fx.colorInit ) {
|
630
|
+
fx.start = color( fx.elem, hook );
|
631
|
+
fx.end = color( fx.end );
|
632
|
+
fx.colorInit = true;
|
622
633
|
}
|
623
|
-
|
624
|
-
|
625
|
-
|
626
|
-
|
627
|
-
|
628
|
-
|
629
|
-
|
630
|
-
}
|
631
|
-
jQuery.cssHooks[ hook ].set( fx.elem, fx.start.transition( fx.end, fx.pos ) );
|
632
|
-
};
|
633
|
-
});
|
634
|
+
jQuery.cssHooks[ hook ].set( fx.elem, fx.start.transition( fx.end, fx.pos ) );
|
635
|
+
};
|
636
|
+
});
|
637
|
+
|
638
|
+
};
|
639
|
+
|
640
|
+
color.hook( stepHooks );
|
634
641
|
|
635
642
|
jQuery.cssHooks.borderColor = {
|
636
643
|
expand: function( value ) {
|
@@ -674,7 +681,6 @@ colors = jQuery.Color.names = {
|
|
674
681
|
})( jQuery );
|
675
682
|
|
676
683
|
|
677
|
-
|
678
684
|
/******************************************************************************/
|
679
685
|
/****************************** CLASS ANIMATIONS ******************************/
|
680
686
|
/******************************************************************************/
|
@@ -702,32 +708,31 @@ $.each([ "borderLeftStyle", "borderRightStyle", "borderBottomStyle", "borderTopS
|
|
702
708
|
};
|
703
709
|
});
|
704
710
|
|
705
|
-
function getElementStyles() {
|
706
|
-
var
|
707
|
-
|
708
|
-
|
709
|
-
|
710
|
-
|
711
|
-
len;
|
711
|
+
function getElementStyles( elem ) {
|
712
|
+
var key, len,
|
713
|
+
style = elem.ownerDocument.defaultView ?
|
714
|
+
elem.ownerDocument.defaultView.getComputedStyle( elem, null ) :
|
715
|
+
elem.currentStyle,
|
716
|
+
styles = {};
|
712
717
|
|
713
|
-
// webkit enumerates style porperties
|
714
718
|
if ( style && style.length && style[ 0 ] && style[ style[ 0 ] ] ) {
|
715
719
|
len = style.length;
|
716
720
|
while ( len-- ) {
|
717
721
|
key = style[ len ];
|
718
722
|
if ( typeof style[ key ] === "string" ) {
|
719
|
-
|
723
|
+
styles[ $.camelCase( key ) ] = style[ key ];
|
720
724
|
}
|
721
725
|
}
|
726
|
+
// support: Opera, IE <9
|
722
727
|
} else {
|
723
728
|
for ( key in style ) {
|
724
729
|
if ( typeof style[ key ] === "string" ) {
|
725
|
-
|
730
|
+
styles[ key ] = style[ key ];
|
726
731
|
}
|
727
732
|
}
|
728
733
|
}
|
729
734
|
|
730
|
-
return
|
735
|
+
return styles;
|
731
736
|
}
|
732
737
|
|
733
738
|
|
@@ -749,6 +754,15 @@ function styleDifference( oldStyle, newStyle ) {
|
|
749
754
|
return diff;
|
750
755
|
}
|
751
756
|
|
757
|
+
// support: jQuery <1.8
|
758
|
+
if ( !$.fn.addBack ) {
|
759
|
+
$.fn.addBack = function( selector ) {
|
760
|
+
return this.add( selector == null ?
|
761
|
+
this.prevObject : this.prevObject.filter( selector )
|
762
|
+
);
|
763
|
+
};
|
764
|
+
}
|
765
|
+
|
752
766
|
$.effects.animateClass = function( value, duration, easing, callback ) {
|
753
767
|
var o = $.speed( duration, easing, callback );
|
754
768
|
|
@@ -756,14 +770,14 @@ $.effects.animateClass = function( value, duration, easing, callback ) {
|
|
756
770
|
var animated = $( this ),
|
757
771
|
baseClass = animated.attr( "class" ) || "",
|
758
772
|
applyClassChange,
|
759
|
-
allAnimations = o.children ? animated.find( "*" ).
|
773
|
+
allAnimations = o.children ? animated.find( "*" ).addBack() : animated;
|
760
774
|
|
761
775
|
// map the animated objects to store the original styles.
|
762
776
|
allAnimations = allAnimations.map(function() {
|
763
777
|
var el = $( this );
|
764
778
|
return {
|
765
779
|
el: el,
|
766
|
-
start: getElementStyles
|
780
|
+
start: getElementStyles( this )
|
767
781
|
};
|
768
782
|
});
|
769
783
|
|
@@ -779,7 +793,7 @@ $.effects.animateClass = function( value, duration, easing, callback ) {
|
|
779
793
|
|
780
794
|
// map all animated objects again - calculate new styles and diff
|
781
795
|
allAnimations = allAnimations.map(function() {
|
782
|
-
this.end = getElementStyles
|
796
|
+
this.end = getElementStyles( this.el[ 0 ] );
|
783
797
|
this.diff = styleDifference( this.start, this.end );
|
784
798
|
return this;
|
785
799
|
});
|
@@ -791,7 +805,7 @@ $.effects.animateClass = function( value, duration, easing, callback ) {
|
|
791
805
|
allAnimations = allAnimations.map(function() {
|
792
806
|
var styleInfo = this,
|
793
807
|
dfd = $.Deferred(),
|
794
|
-
opts =
|
808
|
+
opts = $.extend({}, o, {
|
795
809
|
queue: false,
|
796
810
|
complete: function() {
|
797
811
|
dfd.resolve( styleInfo );
|
@@ -813,7 +827,7 @@ $.effects.animateClass = function( value, duration, easing, callback ) {
|
|
813
827
|
$.each( arguments, function() {
|
814
828
|
var el = this.el;
|
815
829
|
$.each( this.diff, function(key) {
|
816
|
-
el.css( key,
|
830
|
+
el.css( key, "" );
|
817
831
|
});
|
818
832
|
});
|
819
833
|
|
@@ -876,7 +890,7 @@ $.fn.extend({
|
|
876
890
|
(function() {
|
877
891
|
|
878
892
|
$.extend( $.effects, {
|
879
|
-
version: "1.
|
893
|
+
version: "1.10.0",
|
880
894
|
|
881
895
|
// Saves a set of properties in a data storage
|
882
896
|
save: function( element, set ) {
|
@@ -1099,15 +1113,7 @@ function standardSpeed( speed ) {
|
|
1099
1113
|
}
|
1100
1114
|
|
1101
1115
|
// invalid strings - treat as "normal" speed
|
1102
|
-
|
1103
|
-
// TODO: remove in 2.0 (#7115)
|
1104
|
-
if ( backCompat && $.effects[ speed ] ) {
|
1105
|
-
return false;
|
1106
|
-
}
|
1107
|
-
return true;
|
1108
|
-
}
|
1109
|
-
|
1110
|
-
return false;
|
1116
|
+
return typeof speed === "string" && !$.effects.effect[ speed ];
|
1111
1117
|
}
|
1112
1118
|
|
1113
1119
|
$.fn.extend({
|
@@ -1115,12 +1121,9 @@ $.fn.extend({
|
|
1115
1121
|
var args = _normalizeArguments.apply( this, arguments ),
|
1116
1122
|
mode = args.mode,
|
1117
1123
|
queue = args.queue,
|
1118
|
-
effectMethod = $.effects.effect[ args.effect ]
|
1119
|
-
|
1120
|
-
// DEPRECATED: remove in 2.0 (#7115)
|
1121
|
-
oldEffectMethod = !effectMethod && backCompat && $.effects[ args.effect ];
|
1124
|
+
effectMethod = $.effects.effect[ args.effect ];
|
1122
1125
|
|
1123
|
-
if ( $.fx.off || !
|
1126
|
+
if ( $.fx.off || !effectMethod ) {
|
1124
1127
|
// delegate to the original method (e.g., .show()) if possible
|
1125
1128
|
if ( mode ) {
|
1126
1129
|
return this[ mode ]( args.duration, args.complete );
|
@@ -1156,18 +1159,7 @@ $.fn.extend({
|
|
1156
1159
|
}
|
1157
1160
|
}
|
1158
1161
|
|
1159
|
-
|
1160
|
-
if ( effectMethod ) {
|
1161
|
-
return queue === false ? this.each( run ) : this.queue( queue || "fx", run );
|
1162
|
-
} else {
|
1163
|
-
// DEPRECATED: remove in 2.0 (#7115)
|
1164
|
-
return oldEffectMethod.call(this, {
|
1165
|
-
options: args,
|
1166
|
-
duration: args.duration,
|
1167
|
-
callback: args.complete,
|
1168
|
-
mode: args.mode
|
1169
|
-
});
|
1170
|
-
}
|
1162
|
+
return queue === false ? this.each( run ) : this.queue( queue || "fx", run );
|
1171
1163
|
},
|
1172
1164
|
|
1173
1165
|
_show: $.fn.show,
|