Permalink
Browse files

Preserve original text-shadow style

  • Loading branch information...
1 parent b3e5dc6 commit ca12f8851ac77f521846c61940b8b6eaacb518ea @nakajima committed Apr 5, 2009
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/jquery-glowing.js
View
@@ -30,7 +30,7 @@
if (fx.end.begin || (fx.state < 1)) {
fx.elem.style['text-shadow'] = fx.end.color + ' 0 0 ' + updatedRadius + 'px';
} else {
- fx.elem.style['text-shadow'] = 'none';
+ fx.elem.style['text-shadow'] = $(fx.elem).data('glow.originalGlow');
}
}
@@ -63,6 +63,7 @@
bind('mouseenter', startGlow);
bind('mouseleave', startFade);
data('glow.originColor', css('color'));
+ data('glow.originalGlow', (css('text-shadow') || 'none'));
}
return this;

0 comments on commit ca12f88

Please sign in to comment.