aboutsummaryrefslogtreecommitdiffstats
path: root/ui/jquery.effects.slide.js
diff options
context:
space:
mode:
authorFelix Nagel <info@felixnagel.com>2012-05-14 11:49:44 +0200
committerFelix Nagel <info@felixnagel.com>2012-05-14 11:49:44 +0200
commit41dfb09aeb5df7d53089b58959d21207de63edbe (patch)
tree22053c8f7ddff61f3dfdaed028ef2e2d1a6b68c6 /ui/jquery.effects.slide.js
parentec5f2ae34ada562903b919d86221d03c9b193a0e (diff)
parent037db084f20d952558e4529a8b7394d562241a97 (diff)
downloadjquery-ui-41dfb09aeb5df7d53089b58959d21207de63edbe.tar.gz
jquery-ui-41dfb09aeb5df7d53089b58959d21207de63edbe.zip
Merge branch 'master' into selectmenu
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);