So I was getting weird errors on the conversion of my textColor variable. After some debugging I found this:
The first time I call this:
alert(this.contents.textColor);I get this:
http://s15.postimg.org/9ya8mks1n/whatigotnow.png
Anytime after that it nicely displays #ffffff. But the FIRST iteration during gameplay is a problem for other methods like darken(this.contents.textColor)
WHAT??? Why does it return the entire function itself instead of just the result?
The first time I call this:
alert(this.contents.textColor);I get this:
http://s15.postimg.org/9ya8mks1n/whatigotnow.png
Anytime after that it nicely displays #ffffff. But the FIRST iteration during gameplay is a problem for other methods like darken(this.contents.textColor)
WHAT??? Why does it return the entire function itself instead of just the result?