Browse files

Fix IOpacity protocol implementation for Element. Fixes #56.

Checks both getOpacity and get getComputedStyle.
  • Loading branch information...
1 parent 8c516b5 commit 36ce44ae55ade02dd2279cc8b0d67829346ad774 @brentonashworth brentonashworth committed Jan 16, 2012
Showing with 4 additions and 1 deletion.
  1. +4 −1 src/lib/cljs/one/browser/animation.cljs
View
5 src/lib/cljs/one/browser/animation.cljs
@@ -96,7 +96,10 @@
js/Element
(opacity [this]
- (opacity (style/getOpacity this))))
+ (let [op (style/getComputedStyle this "opacity")]
+ (if (= op "")
+ (opacity (style/getOpacity this))
+ op))))
(extend-type goog.fx.AnimationQueue

0 comments on commit 36ce44a

Please sign in to comment.