diff options
author | gnarf <gnarf@gnarf.net> | 2011-03-02 20:00:57 -0600 |
---|---|---|
committer | gnarf <gnarf@gnarf.net> | 2011-03-02 20:00:57 -0600 |
commit | a370d1ffc8b0783a3a9ed1951e144902baddb264 (patch) | |
tree | b974e1492c0e978663069b2b96e233dfbed66cc7 /ui/jquery.effects.fold.js | |
parent | 5fd1f17393d8467b3c873a379f4c55b9aa279ad1 (diff) | |
download | jquery-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.fold.js')
-rw-r--r-- | ui/jquery.effects.fold.js | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/ui/jquery.effects.fold.js b/ui/jquery.effects.fold.js index fa98ee2dd..9357868b7 100644 --- a/ui/jquery.effects.fold.js +++ b/ui/jquery.effects.fold.js @@ -20,9 +20,9 @@ $.effects.fold = function(o) { var el = $(this), props = ['position','top','bottom','left','right']; // Set options - var mode = $.effects.setMode(el, o.options.mode || 'hide'); // Set Mode - var size = o.options.size || 15; // Default fold size - var horizFirst = !(!o.options.horizFirst); // Ensure a boolean value + var mode = $.effects.setMode(el, o.mode || 'hide'); // Set Mode + var size = o.size || 15; // Default fold size + var horizFirst = !(!o.horizFirst); // Ensure a boolean value var duration = o.duration ? o.duration / 2 : $.fx.speeds._default / 2; // Adjust @@ -41,11 +41,11 @@ $.effects.fold = function(o) { animation2[ref[1]] = mode == 'show' ? distance[1] : 0; // Animate - wrapper.animate(animation1, duration, o.options.easing) - .animate(animation2, duration, o.options.easing, function() { + wrapper.animate(animation1, duration, o.easing) + .animate(animation2, duration, o.easing, 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(); }); |