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.highlight.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.highlight.js')
-rw-r--r-- | ui/jquery.effects.highlight.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ui/jquery.effects.highlight.js b/ui/jquery.effects.highlight.js index 9a3edc5bc..6ca0d53c2 100644 --- a/ui/jquery.effects.highlight.js +++ b/ui/jquery.effects.highlight.js @@ -16,7 +16,7 @@ $.effects.highlight = function(o) { return this.queue(function() { var elem = $(this), props = ['backgroundImage', 'backgroundColor', 'opacity'], - mode = $.effects.setMode(elem, o.options.mode || 'show'), + mode = $.effects.setMode(elem, o.mode || 'show'), animation = { backgroundColor: elem.css('backgroundColor') }; @@ -30,17 +30,17 @@ $.effects.highlight = function(o) { .show() .css({ backgroundImage: 'none', - backgroundColor: o.options.color || '#ffff99' + backgroundColor: o.color || '#ffff99' }) .animate(animation, { queue: false, duration: o.duration, - easing: o.options.easing, + easing: o.easing, complete: function() { (mode == 'hide' && elem.hide()); $.effects.restore(elem, props); (mode == 'show' && !$.support.opacity && this.style.removeAttribute('filter')); - (o.callback && o.callback.apply(this, arguments)); + (o.complete && o.complete.apply(this, arguments)); elem.dequeue(); } }); |