brandonaaron / jquery-cssHooks

Collection of cssHooks that work with jQuery 1.4.3+
Other
478 stars 80 forks source link

color hook sets 'transparent' to alpha:1 (not transparent) #30

Open amark opened 13 years ago

amark commented 13 years ago

inside color.js

css hook:

if (!value.alpha) { // returns true if value.alpha == 0 value.alpha = 1; // making it not transparent. }

should be

if (!value.hasOwnProperty('alpha')) { value.alpha = 1; }

ADDITIONALLY: colornames.transparent = { r:-1, g:-1, b:-1 }; should be colornames.transparent = { r:-1, g:-1, b:-1, alpha:0 };