aboutsummaryrefslogtreecommitdiffstats
path: root/ui/jquery.effects.slide.js
diff options
context:
space:
mode:
Diffstat (limited to 'ui/jquery.effects.slide.js')
-rw-r--r--ui/jquery.effects.slide.js11
1 files changed, 5 insertions, 6 deletions
diff --git a/ui/jquery.effects.slide.js b/ui/jquery.effects.slide.js
index a376d3c56..77d540a9c 100644
--- a/ui/jquery.effects.slide.js
+++ b/ui/jquery.effects.slide.js
@@ -1,4 +1,4 @@
-/*
+/*!
* jQuery UI Effects Slide @VERSION
*
* Copyright 2012, AUTHORS.txt (http://jqueryui.com/about)
@@ -20,8 +20,8 @@ $.effects.effect.slide = function( o, done ) {
mode = $.effects.setMode( el, o.mode || "show" ),
show = mode === "show",
direction = o.direction || "left",
- ref = (direction == "up" || direction == "down") ? "top" : "left",
- positiveMotion = (direction == "up" || direction == "left"),
+ ref = (direction === "up" || direction === "down") ? "top" : "left",
+ positiveMotion = (direction === "up" || direction === "left"),
distance,
animation = {},
size;
@@ -44,8 +44,8 @@ $.effects.effect.slide = function( o, done ) {
// Animation
animation[ ref ] = ( show ?
( positiveMotion ? "+=" : "-=") :
- ( positiveMotion ? "-=" : "+="))
- + distance;
+ ( positiveMotion ? "-=" : "+=")) +
+ distance;
// Animate
el.animate( animation, {
@@ -61,7 +61,6 @@ $.effects.effect.slide = function( o, done ) {
done();
}
});
-
};
})(jQuery);