Closed Azeirah closed 8 years ago
Statements like
function someFunc(x) { x = x || 1; return x; }
Can fail unexpectedly, as for example 0 is falsy, someFunc(0) returns 1.
someFunc(0)
I was playing around with spectra, diminishing alpha values over time.. When alpha reached 0, alpha was suddenly 1, fully opaque!
var c = Spectra({r: 0, g: 0, b: 0, a: 0}).rgbaString()
Should be rgba(0, 0, 0, 0), but is rgba(0, 0, 0, 1) instead!
rgba(0, 0, 0, 0)
rgba(0, 0, 0, 1)
This has been fixed in this pull request.
Coverage remained the same at 99.259% when pulling bf449ca67905219d4357ffc4bd922f0cb88fc78d on Azeirah:master into 13fa41d08dd703eb38ccbb82ca332f745907abad on avp:master.
Thanks for taking the time to merging this request, not all package maintainers take the time to manage their projects after development has stalled.
Statements like
Can fail unexpectedly, as for example 0 is falsy,
someFunc(0)
returns 1.I was playing around with spectra, diminishing alpha values over time.. When alpha reached 0, alpha was suddenly 1, fully opaque!
Should be
rgba(0, 0, 0, 0)
, but isrgba(0, 0, 0, 1)
instead!This has been fixed in this pull request.