aboutsummaryrefslogtreecommitdiffstats
path: root/ui/jquery.effects.blind.js
diff options
context:
space:
mode:
authorgnarf <gnarf@gnarf.net>2011-06-21 01:15:42 -0500
committergnarf <gnarf@gnarf.net>2011-06-21 01:18:11 -0500
commit65a6c46e5568c43a9df9505e23da6a766814557e (patch)
tree63087dadabc63382d06c369062644fc64d252f5f /ui/jquery.effects.blind.js
parent1c1a3b1a361d90a73755fbd038b3cdfb0960c29f (diff)
downloadjquery-ui-65a6c46e5568c43a9df9505e23da6a766814557e.tar.gz
jquery-ui-65a6c46e5568c43a9df9505e23da6a766814557e.zip
Effects.*: Style Guidance
Diffstat (limited to 'ui/jquery.effects.blind.js')
-rw-r--r--ui/jquery.effects.blind.js16
1 files changed, 8 insertions, 8 deletions
diff --git a/ui/jquery.effects.blind.js b/ui/jquery.effects.blind.js
index 8c536be78..09d6a9e57 100644
--- a/ui/jquery.effects.blind.js
+++ b/ui/jquery.effects.blind.js
@@ -11,7 +11,7 @@
* jquery.effects.core.js
*/
(function( $, undefined ) {
-
+
var rvertical = /up|down|vertical/,
rpositivemotion = /up|left|vertical|horizontal/;
@@ -35,24 +35,24 @@ $.effects.effect.blind = function( o, next ) {
} else {
$.effects.save( el, props );
}
- el.show();
- wrapper = $.effects.createWrapper( el ).css({
+ el.show();
+ wrapper = $.effects.createWrapper( el ).css({
overflow: "hidden"
});
distance = wrapper[ ref ]();
- animation[ ref ] = ( mode === "show" ? distance : 0 );
+ animation[ ref ] = show ? distance : 0;
if ( !motion ) {
el
.css( vertical ? "bottom" : "right", 0 )
.css( vertical ? "top" : "left", "" )
.css({ position: "absolute" });
- animation[ ref2 ] = ( mode === "show" ) ? 0 : distance;
+ animation[ ref2 ] = show ? 0 : distance;
}
// start at 0 if we are showing
- if ( mode === "show" ) {
+ if ( show ) {
wrapper.css( ref, 0 );
if ( ! motion ) {
wrapper.css( ref2, distance );
@@ -65,10 +65,10 @@ $.effects.effect.blind = function( o, next ) {
easing: o.easing,
queue: false,
complete: function() {
- if ( mode == "hide" ) {
+ if ( mode === "hide" ) {
el.hide();
}
- $.effects.restore( el, props );
+ $.effects.restore( el, props );
$.effects.removeWrapper( el );
if ( $.isFunction( o.complete ) ) {
o.complete.apply( el[ 0 ], arguments );