title: Javascript variable is undefined but it is defined
body: <p>I've this method in my global controller object of my JavaScript application. Now I get the error, that the statement <em>self.texts.buttons.disabledFinishedJobs</em> is undefined. But I don't understand that because the <em>console.log()</em> statement outputs the expected value. What can be the reason?</p>
  
  <pre><code>toggleFinishedJobs: function() {
  
          var self = this;
          console.log(self.texts.buttons.disabledFinishedJobs[0]);
          if (this.disabledFinished) {
            $(".status_99").show();
            this.disabledFinished = false;
            $("btn_finishedJobs").text(self.texts.buttons.disabledFinishedJobs[0]);
          } else {
            $(".status_99").hide();
            this.disabledFinished = true;
            $("btn_finishedJobs").text(self.texts.buttons.disabledfinishedJobs[0]);
          }
  
        }
  </code></pre>