Skip to content

Commit

Permalink
style tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
rvagg committed Oct 14, 2013
1 parent 018b5c6 commit df3dc2c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/bonzo.js
Original file line number Diff line number Diff line change
Expand Up @@ -789,10 +789,12 @@

if (!features.opasity && 'opacity' in iter) {
// oh this 'ol gamut
iter.filter = null == iter.opacity || '' === iter.opacity ? '' : 'alpha(opacity=' + (iter.opacity * 100) + ')'
iter.filter = iter.opacity != null && iter.opacity !== ''
? 'alpha(opacity=' + (iter.opacity * 100) + ')'
: ''
// give it layout
iter.zoom = o.zoom || 1
delete iter.opacity
;delete iter.opacity
}

function fn(el, p, v) {
Expand Down

0 comments on commit df3dc2c

Please sign in to comment.