aboutsummaryrefslogtreecommitdiffstats
path: root/ui/jquery.effects.clip.js
diff options
context:
space:
mode:
Diffstat (limited to 'ui/jquery.effects.clip.js')
-rw-r--r--ui/jquery.effects.clip.js13
1 files changed, 6 insertions, 7 deletions
diff --git a/ui/jquery.effects.clip.js b/ui/jquery.effects.clip.js
index c0fe450c9..9c29d252d 100644
--- a/ui/jquery.effects.clip.js
+++ b/ui/jquery.effects.clip.js
@@ -17,11 +17,10 @@ $.effects.clip = function(o) {
return this.queue(function() {
// Create element
- var el = $(this), props = ['position','top','bottom','left','right','height','width'];
-
- // Set options
- var mode = $.effects.setMode(el, o.options.mode || 'hide'); // Set Mode
- var direction = o.options.direction || 'vertical'; // Default direction
+ var el = $( this ),
+ props = ['position','top','bottom','left','right','height','width'],
+ mode = $.effects.setMode( el, o.mode || 'hide' ),
+ direction = o.direction || 'vertical'; // Default direction
// Adjust
$.effects.save(el, props); el.show(); // Save & Show
@@ -40,10 +39,10 @@ $.effects.clip = function(o) {
animation[ref.position] = mode == 'show' ? 0 : distance / 2;
// Animate
- animate.animate(animation, { queue: false, duration: o.duration, easing: o.options.easing, complete: function() {
+ animate.animate(animation, { queue: false, duration: o.duration, easing: o.easing, complete: function() {
if(mode == 'hide') el.hide(); // Hide
$.effects.restore(el, props); $.effects.removeWrapper(el); // Restore
- if(o.callback) o.callback.apply(el[0], arguments); // Callback
+ if(o.complete) o.complete.apply(el[0], arguments); // Callback
el.dequeue();
}});