aboutsummaryrefslogtreecommitdiffstats
path: root/ui/jquery.effects.clip.js
diff options
context:
space:
mode:
authorgnarf <gnarf@gnarf.net>2011-03-02 20:00:57 -0600
committergnarf <gnarf@gnarf.net>2011-03-02 20:00:57 -0600
commita370d1ffc8b0783a3a9ed1951e144902baddb264 (patch)
treeb974e1492c0e978663069b2b96e233dfbed66cc7 /ui/jquery.effects.clip.js
parent5fd1f17393d8467b3c873a379f4c55b9aa279ad1 (diff)
downloadjquery-ui-a370d1ffc8b0783a3a9ed1951e144902baddb264.tar.gz
jquery-ui-a370d1ffc8b0783a3a9ed1951e144902baddb264.zip
Just a quick touch to update to new internal effects object API
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();
}});