Permalink
Browse files

keep outerThis in functional scope

  • Loading branch information...
1 parent c3b1a25 commit 3a35383f8f81dc8dba9622a21897156d4b806b35 @bloveridge bloveridge committed Sep 20, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/jasmine.teamcity_reporter.js
@@ -36,7 +36,7 @@
this.log("##teamcity[testSuiteStarted name='" + this.escapeTeamcityString(description) + "']");
- outerThis = this;
+ var outerThis = this;
results.items_.forEach(function(spec){
if (spec.description) {
outerThis.log("##teamcity[testStarted name='" + outerThis.escapeTeamcityString(spec.description) + "' captureStandardOutput='true']");

0 comments on commit 3a35383

Please sign in to comment.