NoColor bug on unfilled objects

if (selection[0].strokeColor == '[NoColor]'); // true
if (selection[0].stroked == false); // true
var msg = 'Adobe Illustrator: ' + app.version;
msg += '\nPath filled: ' + selection[0].filled;
msg += '\nPath fill: ' + selection[0].fillColor;
msg += '\nPath gray color: ' + selection[0].fillColor.gray;
alert(msg);
var msg = 'Adobe Illustrator: ' + app.version;
var noColor = new NoColor();
selection[0].fillColor = noColor;
msg += '\nPath fill: ' + selection[0].fillColor;
alert(msg);

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store