My guess is the string representation of parent.color isn’t “blue”, causing your condition to always fail, even once you’ve set it to “blue”. Try using the HTML color code for blue (”#0000ff”) instead.
Edit:
As you mentioned, setting the value to “blue” works just fine (as would “green”), but printing the value after you set it should result in the HTML code, I believe.
↧








