Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix IOpacity protocol implementation for Element. Fixes #56.

Checks both getOpacity and get getComputedStyle.
  • Loading branch information...
commit 36ce44ae55ade02dd2279cc8b0d67829346ad774 1 parent 8c516b5
@brentonashworth brentonashworth authored
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
Please sign in to comment.
Something went wrong with that request. Please try again.