aboutsummaryrefslogtreecommitdiffstats
path: root/ui/jquery.effects.shake.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.shake.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.shake.js')
-rw-r--r--ui/jquery.effects.shake.js9
1 files changed, 4 insertions, 5 deletions
diff --git a/ui/jquery.effects.shake.js b/ui/jquery.effects.shake.js
index 0e12cfe56..700c6df3d 100644
--- a/ui/jquery.effects.shake.js
+++ b/ui/jquery.effects.shake.js
@@ -1,4 +1,4 @@
-/*
+/*!
* jQuery UI Effects Shake @VERSION
*
* Copyright 2012, AUTHORS.txt (http://jqueryui.com/about)
@@ -22,8 +22,8 @@ $.effects.effect.shake = function( o, done ) {
times = o.times || 3,
anims = times * 2 + 1,
speed = o.duration,
- ref = (direction == "up" || direction == "down") ? "top" : "left",
- positiveMotion = (direction == "up" || direction == "left"),
+ ref = (direction === "up" || direction === "down") ? "top" : "left",
+ positiveMotion = (direction === "up" || direction === "left"),
animation = {},
animation1 = {},
animation2 = {},
@@ -32,7 +32,6 @@ $.effects.effect.shake = function( o, done ) {
// we will need to re-assemble the queue to stack our animations in place
queue = el.queue(),
queuelen = queue.length;
-
$.effects.save( el, props );
el.show();
@@ -49,7 +48,7 @@ $.effects.effect.shake = function( o, done ) {
// Shakes
for ( i = 1; i < times; i++ ) {
el.animate( animation1, speed, o.easing ).animate( animation2, speed, o.easing );
- };
+ }
el
.animate( animation1, speed, o.easing )
.animate( animation, speed / 2, o.easing )