aboutsummaryrefslogtreecommitdiffstats
path: root/ui/jquery.effects.highlight.js
diff options
context:
space:
mode:
authorgnarf <gnarf@gnarf.net>2011-03-06 17:45:43 -0600
committergnarf <gnarf@gnarf.net>2011-03-06 17:45:43 -0600
commit7a60bc6824227bc2613eec1b79bcd6e8170d61f0 (patch)
tree860fc0e64b76220b114f4fd9c22275624412a42a /ui/jquery.effects.highlight.js
parent8ce879e51be564bc9eb906295fd04069ce90a5bc (diff)
downloadjquery-ui-7a60bc6824227bc2613eec1b79bcd6e8170d61f0.tar.gz
jquery-ui-7a60bc6824227bc2613eec1b79bcd6e8170d61f0.zip
effect.*: Style Guidance
Diffstat (limited to 'ui/jquery.effects.highlight.js')
-rw-r--r--ui/jquery.effects.highlight.js22
1 files changed, 11 insertions, 11 deletions
diff --git a/ui/jquery.effects.highlight.js b/ui/jquery.effects.highlight.js
index 2049ec015..b2ffb15e8 100644
--- a/ui/jquery.effects.highlight.js
+++ b/ui/jquery.effects.highlight.js
@@ -12,20 +12,20 @@
*/
(function( $, undefined ) {
-$.effects.highlight = function(o) {
- return this.queue(function() {
- var elem = $(this),
- props = ['backgroundImage', 'backgroundColor', 'opacity'],
- mode = $.effects.setMode(elem, o.mode || 'show'),
+$.effects.highlight = function( o ) {
+ return this.queue( function() {
+ var elem = $( this ),
+ props = [ 'backgroundImage', 'backgroundColor', 'opacity' ],
+ mode = $.effects.setMode( elem, o.mode || 'show' ),
animation = {
- backgroundColor: elem.css('backgroundColor')
+ backgroundColor: elem.css( 'backgroundColor' )
};
if (mode == 'hide') {
animation.opacity = 0;
}
- $.effects.save(elem, props);
+ $.effects.save( elem, props );
elem
.show()
@@ -33,15 +33,15 @@ $.effects.highlight = function(o) {
backgroundImage: 'none',
backgroundColor: o.color || '#ffff99'
})
- .animate(animation, {
+ .animate( animation, {
queue: false,
duration: o.duration,
easing: o.easing,
complete: function() {
(mode == 'hide' && elem.hide());
- $.effects.restore(elem, props);
- (mode == 'show' && !$.support.opacity && this.style.removeAttribute('filter'));
- (o.complete && o.complete.apply(this, arguments));
+ $.effects.restore( elem, props );
+ (mode == 'show' && !$.support.opacity && this.style.removeAttribute( 'filter' ));
+ jQuery.isFunction(o.complete) && o.complete.apply(this, arguments);
elem.dequeue();
}
});