closed #3377: fix a bug that _displayedColor and _realColor use the same Pointer when compile single js file