Browse Source

fixes #26 Transparency default value bug when zero

pull/28/head
James Cryer 10 years ago
parent
commit
47281658d2
  1. 2
      resemble.js

2
resemble.js

@ -600,7 +600,7 @@ URL: https://github.com/Huddle/Resemble.js
errorPixelTransformer = errorPixelTransform[options.errorType]; errorPixelTransformer = errorPixelTransform[options.errorType];
} }
pixelTransparency = options.transparency || pixelTransparency; pixelTransparency = isNaN(Number(options.transparency)) ? pixelTransparency : options.transparency;
if (options.largeImageThreshold !== undefined) { if (options.largeImageThreshold !== undefined) {
largeImageThreshold = options.largeImageThreshold; largeImageThreshold = options.largeImageThreshold;

Loading…
Cancel
Save