how can a var have a value and then be unassigned in the same console.log message?
up vote
2
down vote
favorite
I'm probably missing something obvious, I have a value which is assigned to this.theValue . Logging this value straight away shows that this.theValue has a value. Later on this value is magically undefined. If I however log the following console.log(this, this.theValue) then the first one shows that theValue exists, but this.theValue is undefined. This is what it looks like: /*global define, window */ define([ 'competitor/show/CompetitorLabelColours', 'competitor/show/CompetitorLabelText' ], function( CompetitorLabelColours, CompetitorLabelText ) { 'use strict'; let CompetitorLabelFactory = function(parameterSet) { this.parameterSet = parameterSet; this.labeltext = new CompetitorLabelText(parameterSet); this...
